Starting project code for the SGT project
- Fork this repo
- Clone your forked copy of this repo
git clone https://github.com/[Your Username]/mod_3_sgt.git
- Change directory into the newly cloned repo
cd mod_3_sgt
- Install dependencies
npm install
- Start dev server
npm start
- Open a browser and navigate to
localhost:3000
- PATH
/api/grades
- METHOD
POST
- DATA
{ "name": "Student Name", "course": "Course Name", "grade": 97 }
- PATH
/api/grades
- METHOD
GET
- DATA
none
- PATH
/api/grades/:id
- METHOD
GET
- DATA
none
- PATH
/api/grades/:id
- METHOD
DELETE
- DATA
none
- PATH
/api/grades/:id
- METHOD
PATCH
- DATA
Send one or more of the properties you want to update
{ "name": "Student Name", "course": "Course Name", "grade": 97 }
- Run webpack to build project
npm run build
NOTE: After building you can not directly run your app locally. You must run your app from the root directory of a server.