Skip to content

ViniGB/Project-Store-manager

Repository files navigation

Project Store Manager

  • Project to develop a RESTful API (CRUD) for a dropshipping based sales system, using MSC Architecture.

Requirements

  1. Create endpoint to list products in /products and /products/:id ✔️
  2. Develop tests to cover at least 5% of application layers ✔️
  3. Create endpoint to register products in /products ✔️
  4. Create product registration validations ✔️
  5. Develop tests to cover at least 10% of application layers ✔️
  6. Create endpoint to validate and register sales in /sales ✔️
  7. Develop tests to cover at least 15% of application layers ✔️
  8. Create endpoint to list sales in /sales and /sales/:id ✔️
  9. Develop tests to cover at least 20% of application layers ✔️
  10. Create endpoint to update product by id in /products/:id ✔️
  11. Develop tests to cover at least 25% of application layers ✔️
  12. Create endpoint to delete product by id in /products/:id ✔️

Bonus Requirements

  1. Develop tests to cover at least 30% of application layers ✔️
  2. Create endpoint to delete sale by id in /sales/:id ✔️
  3. Develop tests to cover at least 35% of application layers ✔️
  4. Create endpoint to update sale by id in /sales/:id ✔️
  5. Develop tests to cover at least 40% of application layers ✔️
  6. Create endpoint to search product by query (products/search?q=searchTerm) in /products/search ✔️
  7. Develop tests to cover at least 50% of application layers ✔️
  8. Develop tests to cover at least 60% of application layers ✔️

Language and Tools

mysql MySQL

javascript JavaScript

nodejs Node.js

mocha Mocha

sinon Sinon

chai Chai

Get started

With Docker
👉 Dockerfile and Docker-compose were provided by Trybe

⚠️ Before you start, you must check if your docker-compose version is 1.29 or higher

  • Run node and db by running:
$ docker-compose up -d
  • Open interactive terminal using:
$ docker exec -it store_manager bash
  • Install dependencies, inside the container, with:
$ npm install
Install it locally
  • Open terminal and create a directory in your preferred location:
$ mkdir <Your directory name here>
  • Access directory then clone the repository:
$ cd <Your directory name here>
$ git clone git@github.com:ViniGB/Project-Store-manager.git
  • Access the newly created directory:
$ cd Project-Store-manager
  • Install dependencies:
$ npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published