This Project creates a RESTful API using the MSC (model-service-controller) architecture!
The API is a sales management system in the dropshipping format. It is possible to create, visualize and delete products and sales.
First commit: on Aug 11, 2022.
Here I had to exercise: MSC, Node.js, Express, MySQL, docker.
This is a back-end Project, part of my course at Trybe.
📸 Endpoints Results Screenshots:
You need to have installed:
- Unix based Operational System
- node version >= 16.14.0 LTS
- Docker
- Docker-compose version >= 1.29.2
command: npm install
Use Docker, commands:
To start the container: docker-compose up -d
To acces the container: docker exec -it store_manager bash
To run the API, inside the container#: npm run start
Use Insomnia or Postman or Thinder Client to check the API results
Here you find a list of files and or folders according to the ownership.
🙋♀️ I coded myself:
aseets/
controllers/
middlewares/ (except error.middleware.ts)
models/
routes/
services/
tests/
thunder-tests/
README.md
🧑🤝🧑 I coded partially - the scholl has coded some of it:
app.js
index.js
🧛 coded by a teacher or a teammate:
middlewares/
validacaoProduct.js -> partially coded in class by Henrique Baeta
validacaoSale.js -> partially coded in class by Henrique Baeta
🏫 coded by the school:
all others not mentioned before.
✨ all icons used here are from: EmojiPedia.