A Node.js back-end server with Restdb as database.
Made by Alexandre BOUSQUET and Hamza IKIOU, two students of the professional licence APIDAE.
Link to API Rest documentation
Link to the Deep Fried Recipes website (with the front-end)
-
users
- create an user
- login and get a JWT token
- edit profile
-
recipes
- Create recipe
- Read recipe (one or all)
- Update a recipe
- Delete a recipe
All the routes of this API.
// Get all the recipes
"https://deepfriedrecipes.herokuapp.com/recipes/get"
// Get the recipe with the ID in url
"https://deepfriedrecipes.herokuapp.com/recipes/get/:id"
// Create the recipe with the attributes in the body request
"https://deepfriedrecipes.herokuapp.com/recipes/post"
// Delete the recipe with the ID in url
"https://deepfriedrecipes.herokuapp.com/recipes/delete/:id"
// Update the recipe with the ID in url with the attributes in the body request
"https://deepfriedrecipes.herokuapp.com/recipes/put/:id"
// Create an user with the attributes in the body request
"https://deepfriedrecipes.herokuapp.com/my-users/post"
// Log in an user and give him a JWT to do other request
"https://deepfriedrecipes.herokuapp.com/login"
// Update an user with the attributes in the body request
"https://deepfriedrecipes.herokuapp.com/my-users/put/:id"
# Install the dependencies in package.json
npm install
# Run the server on default port (5000)
npm start