Coder Social home page Coder Social logo

nem-101.e1-boilerplate's Introduction

Getting Started

  1. Down the zip of the repository in masai-repo.
  2. Unzip and rename the folder as per masai-repo-standards.
  3. All set to start.

Task

  • Create a NodeJS Server with following features.

Features to build

  1. Create CRUD api's for /users

    • GET /users: get list of users
    • GET /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.
  2. Create CRUD api's for /products.

    • GET /products: get list of products

      • GET /products?tags=black : get products where tags has black.
      • GET /products?sizes=lg : get products where size lg is applicable.
      • GET /products?tags=black&sizes=lg : get products where tags has black and where size lg is applicable.

      Note - Query filters applicable for tags, size and colors.

    • 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

Mandatory:

  1. Initialize NPM.
  2. Use of ExpressJS.
  3. Use go nodemon.
  4. server should run on port: 8000.
  5. Command: npm run start should start the server.
  6. Should not update schema file while performing following features.

Schema Files

  • Users : check data/users.json file.
  • Products : check data/products.json file.

General Instructions (IMPORTANT)

  1. Make sure you follow masai-repo standards.
  2. Do not change/update Schema files, we will test your code agains the same files.
  3. Expected use of routing to seperate out user and product code.

Optional

  1. Heroku Deployment of NodeJS

nem-101.e1-boilerplate's People

Forkers

aaru1996

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.