This is the api used for the meal-planner app help you plan and view your meals for the week
Complete the following steps to start a new project (NEW-PROJECT-NAME):
- Clone this repository to your local machine
git clone https://github.com/muzhaqi16/sous-chef-client.git NEW-PROJECTS-NAME
cd
into the cloned repository- Make a fresh start of the git history for this project with
rm -rf .git && git init
- Install the node dependencies
npm install
- Move the example Environment file to
.env
that will be ignored by git and read by the express servermv example.env .env
- Edit the contents of the
package.json
to use NEW-PROJECT-NAME instead of"name": "sous-chef",
- Migrate the database to the latest version
Start the application npm start
Run the tests npm test
Run in development mode npm run dev
Deploy to a server npm run deploy
Migrate database npm run migrate
/api/meal
`GET` get all meals for a specified user
`POST` add a new meal
/:week
`GET` get meals by week date
`DELETE` delete meal by id
`PATCH` edit meal by id
/api/recipes
`GET` get all recipes for a specified user matching query
`POST` add a new recipe
/api/auth
`POST` login
/api/refresh
POST
refresh jwt authentication token
/api/users
`POST` add a new user