Local server
- Node.js
- Express.js
Location of server = /server Server depends on node.js LTS Version: v10.16.0 Please make sure you have these installed before proceeding forward.
Great, you are ready to proceed forward; awesome!
Let's start with running commands in your command line interface (CLI)
# npm install
# node server
http://localhost:3000/api/recipes/
http://localhost:3000/api/recipes/<id>
http://localhost:3000/api/recipes/
{
"title": <recipe_title>,
"ingredients": <ingredients>,
"instructions": <instructions>,
"time to prepare": <preparation_time>,
"difficulty": <difficulty_number>
}
http://localhost:3000/api/recipes/<id>
{
"title": <recipe_title>,
"ingredients": <ingredients>,
"instructions": <instructions>,
"time to prepare": <preparation_time>,
"difficulty": <difficulty_number>
}
http://localhost:3000/api/recipes/<id>