thomas-siozos / Store-Management

An app for store management (in particular for restaurant - café - bar).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StoreManagement

This is a store management app that provides main functions you'd expect from a store management app, such as CRUD tables, CRD products on menu and products management on each table.

View_Tables

Table of Contents

Features

📜

  • Create Table.
  • View Tables.
  • Update Table.
  • Delete Table.
  • Add Product.
  • View Products.
  • Delete Product.
  • Add Product to Table.
  • Delete Product from Table.
  • Login/Logout.
  • Sum of selected products on each table.

Setup

Custom badge

  • Clone this repo to your desktop
  • npm install
  • Change on backend/app.js the connection of mongoose.
    • First Step, you'll need an account on MongoDB Atlas.
    • Second Step, create a new Cluster (Free).
    • Third Step, allow Network Access to your IP or 0.0.0.0/0 (anyone).
    • Fourth Step, connect your app with your database.
    • You are ready!

Develop

💻

  • Run ng serve for Angular, running at localhost:4200
  • Run npm run start:server for API, running at localhost:3000
  • Open your browser at localhost:4200

Build

🔧

Run ng build to build the project. The build artifacts will be stored in the app-production/ directory. Use the --prod flag for a production build.

Dockerize

🐳

You need backend/Dockerfile , ./Dockerfile and docker-compose.yaml files.
Also, if you use Hyper-V engine, you have to put your directory on "File Sharing".

Run docker-compose

Run the command docker-compose up -d (for detach mode, remove -d if you don't want detach mode) in the directory with the docker-compose file.
If you want to close it, you can from your docker-desktop/dashboard or with the command docker-compose down.

!NOTE
You have to change your mongodb domain (backend/app.js) to:

 mongodb://host.docker.internal:27017/dbname

If you use local mongodb.(Container understands that that means localhost).

Examples

Login

Login

Add Table

Add_Table

Products

Products

Add Product on Table

Add_Product

Update Table

Update_Table

View Tables

View_Tables

Selected Sum

Selected_Sum

Author

✏️

Siozos Thomas

License

🔑

You can check out the full lecense here This project is lecensed under the terms of the MIT license.

About

An app for store management (in particular for restaurant - café - bar).

License:MIT License


Languages

Language:TypeScript 55.1%Language:JavaScript 21.5%Language:HTML 18.6%Language:CSS 4.0%Language:SCSS 0.5%Language:Dockerfile 0.3%