Skip to content

7-18/coffeelabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to CoffeeLabs ☕


CoffeeLabs, a coffee shop specializing in the sale of coffee products.

🦾 Technologies

🚀 Get Started

Deploy: CoffeeLabs

You need to be using:

Clone the repository & install dependencies:

git clone git@github.com:7-18/coffeelabs.git
cd coffeelabs
npm install
npm run start
go to http://localhost:4000/api/v1/docs

You can... 📚

  • Create, update and delete products, pay methods and clasifications.
  • Add sales.
  • Manage your inventory, see stock available and total sales.
  • See all the data.

Collection 📃

Product Model

{
  "_id": "650d055db8b6303337f3906a",
  "name": "Ground Coffee",
  "description": "Freshly ground coffee beans",
  "stock": 100,
  "price": 12.99,
  "classification_id": "5e7c56c4719a504b9f40e4e1",
  "register_at": "2023-09-22T03:09:17.838+00:00",
  "update_at": "2023-09-22T13:45:02.838+00:00"
}

Classification Model

{
  "_id": "5e7c56c4719a504b9f40e4e1",
  "name": "Coffee Beans",
  "register_at": "2023-09-22T03:09:17.838+00:00",
  "update_at": "2023-09-22T13:45:02.838+00:00"
}

Sale Model

{
  "_id": "5e7c56c4719a504b9f40e4e2",
  "product_id": "650d055db8b6303337f3906a",
  "paymethod_id": "650d055db8b6303337f3906a",
  "quantity": 3,
  "sale_at": "2023-09-22T09:15:42.123+00:00"
}

Env 👀

The env_example file is a guide of what your private .env file should look like.