Giter Site home page Giter Site logo

thomas-siozos / store-management Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.21 MB

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

License: MIT License

JavaScript 21.45% TypeScript 55.08% HTML 18.62% CSS 3.99% SCSS 0.53% Dockerfile 0.33%
angular10 node12 typescript html5 css docker docker-compose mongodb

store-management's Introduction

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.

store-management's People

Contributors

thomas-siozos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.