Local server
- Node.js
Location of server = /server
Server depends on node.js LTS Version: v6.11.2 , npm,mongo
Please make sure you have it installed before proceeding forward.
Great, you are ready to proceed forward; awesome!
Let's start with running commands in your terminal, known as command line interface (CLI)
# npm i
# node server
http://localhost:3000/products/
http://localhost:3000/orders/
http://localhost:3000/products/<product_id>
http://localhost:3000/users/signup/
{
"email": <email>,
"password": <pass>,
}
http://localhost:3000/users/login/
{
"email": <email>,
"password": <pass>,
}
http://localhost:3000/products/
{
"name": <product_name>,
"price": <price>,
}
http://localhost:3000/orders/
{
"productId": <product_id>,
"quantity": <quantity>,
}
http://localhost:3000/products/<product_id>
{
"propName": <propName>,
"value": <value>
}
http://localhost:3000/orders/<order_id>
{
"propName": <propName>,
"value": <value>
}
http://localhost:3000/products/<product_id>
http://localhost:3000/orders/<order_id>
http://localhost:3000/users/<user_id>