- Project to develop a RESTful API (CRUD) for a dropshipping based sales system, using MSC Architecture.
- Create endpoint to list products in
/products
and/products/:id
✔️ - Develop tests to cover at least
5%
of application layers ✔️ - Create endpoint to register products in
/products
✔️ - Create product registration validations ✔️
- Develop tests to cover at least
10%
of application layers ✔️ - Create endpoint to validate and register sales in
/sales
✔️ - Develop tests to cover at least
15%
of application layers ✔️ - Create endpoint to list sales in
/sales
and/sales/:id
✔️ - Develop tests to cover at least
20%
of application layers ✔️ - Create endpoint to update product by id in
/products/:id
✔️ - Develop tests to cover at least
25%
of application layers ✔️ - Create endpoint to delete product by id in
/products/:id
✔️
- Develop tests to cover at least
30%
of application layers ✔️ - Create endpoint to delete sale by id in
/sales/:id
✔️ - Develop tests to cover at least
35%
of application layers ✔️ - Create endpoint to update sale by id in
/sales/:id
✔️ - Develop tests to cover at least
40%
of application layers ✔️ - Create endpoint to search product by query (
products/search?q=searchTerm
) in/products/search
✔️ - Develop tests to cover at least
50%
of application layers ✔️ - Develop tests to cover at least
60%
of application layers ✔️
MySQL
JavaScript
Node.js
Mocha
Sinon
Chai
With Docker
👉 Dockerfile and Docker-compose were provided by Trybe
- Run
node
anddb
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