Skip to content

Aug 11, 2022. This is a back-end project. It creates a RESTful API using the MSC. It is part of my course at @betrybe.

Notifications You must be signed in to change notification settings

cjheyde/Store-Manager

Repository files navigation

Store Manager 🛍️

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:

GET /products
GET /products

POST /products
POST /products

DELETE /products/:id
DELETE /products/:id

GET /sales
GET /sales

POST /sales
POST /sales

GET /sales/:id
GET /sales/:id

How to run it:

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

Files/Folders Ownership

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.

🚧 README under construction 🚧

About

Aug 11, 2022. This is a back-end project. It creates a RESTful API using the MSC. It is part of my course at @betrybe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published