For development, you will only need Node.js and a node global package, Yarn, installed in your environement.
Just go on official Node.js website and download the installer.
Also, be sure to have git
available in your PATH, npm
might need it (You can find git here).
After installing node, this project will need yarn too, so just run the following command.
$ npm install -g yarn
$ git clone https://github.com/YOUR_USERNAME/PROJECT_TITLE
$ cd PROJECT_TITLE
$ yarn install
PORT
MONGOS_CONNECTION_LINK
$ yarn start
$ yarn build
Method | Endpoint | Description |
---|---|---|
GET | / | get all products |
GET | /:id | get a specific product |
POST | / | add new product |
DELETE | /:id | delete product |
PUT | /:id | update product |
Method | Endpoint | Description |
---|---|---|
GET | / | get all users |
GET | /:id | get a specific user |
POST | /register | create new user |
POST | /login | authenticate user |
DELETE | /:id | delete user |
PUT | /:id | update user |
PUT | /change-password/:id | change password |
name: String,
email: String,
password: String
name:String,
description: String,
price: Number,
colors: Array,
sizes: Array