- Down the zip of the repository in masai-repo.
- Unzip and rename the folder as per masai-repo-standards.
- All set to start.
- Create a NodeJS Server with following features.
-
Create CRUD api's for
/users
GET /users
: get list of usersGET /users/:id
: get one user where id matches.DELETE /users/:id
: delete one user where id matches.POST /users
: add one user where with dynamic id.
-
Create CRUD api's for
/products
.-
GET /products
: get list of productsGET /products?tags=black
: get products where tags hasblack
.GET /products?sizes=lg
: get products where sizelg
is applicable.GET /products?tags=black&sizes=lg
: get products where tags hasblack
and where sizelg
is applicable.
Note - Query filters applicable for
tags
,size
andcolors
. -
GET /products/:id
: get one product where id matches. -
DELETE /products/:id
: delete one product where id matches. -
POST /products
: add one product where with dynamic id.
-
Note - Make sure you implelement features one by one and deploy the app correctly
- Initialize NPM.
- Use of ExpressJS.
- Use go nodemon.
- server should run on port:
8000
. - Command:
npm run start
should start the server. - Should not update schema file while performing following features.
- Make sure you follow
masai-repo
standards. - Do not change/update Schema files, we will test your code agains the same files.
- Expected use of routing to seperate out user and product code.