Skip to content

alexandre-bousquet/deepfriedrecipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Deep Fried Recipes

A Node.js back-end server with Restdb as database.

Made by Alexandre BOUSQUET and Hamza IKIOU, two students of the professional licence APIDAE.

Links

Link to the Node.js server

Link to API Rest documentation

Link to the Deep Fried Recipes website (with the front-end)

Features

  • 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

Routes

All the routes of this API.

Recipes

// 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"

Users

// 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"

Run

# Install the dependencies in package.json
npm install

# Run the server on default port (5000)
npm start

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages