Skip to content

Christopher-Allen-21/psu-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

PSU Masters Sample UI Integrated with API

  • Objective - Implement a sample UI with CRUD backend

For Backend Reference

To Run

  • Backend
    • npm start - navigate to server directory and run this
  • Frontend
    • ng serve - navigate to client directory and run this

Packages to install

  • In Client Directory
    • npm install -g @angular/cli - install angular cli
    • ng new "name of angular project" - setup new angular project
    • ng add @angular/material - adds Angular Materials functionality
  • In Server Directory
    • npm install --save cors - installs cors

Code Walkthrough

  • Chose Angular 19 for front end
  • Reused most of the backend from previuos week's assignment. Added localhost to allowed origins for CORS
    • image
  • Defined routes and associated components
    • image
    • image
    • image
  • Defined User model to match model in backend
    • image
  • Created table for displaying all users in db
    • image
  • Created tables for Creating and Updating Users
    • image
    • image
  • CRUD Methods
    • GET
      • image
    • POST
      • image
    • PUT
      • image
    • DELETE
      • image
  • Social Media Login Integration
    • Added script for Google authentication
      • image
    • Added client id from Google API
      • image
    • Added html for Google log in
      • image

Functionality Demo

  • Routing
    • image
    • image
    • image
  • Get Users
    • image
    • image
  • Create User
    • image
    • image
    • image
  • Update User
    • image
    • image
    • image
  • Delete User
    • image
    • image
  • Social Media Login Integration
    • image
    • image
    • image
    • image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors