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.
📜
- 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.
- 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!
💻
- 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
🔧
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.
🐳
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 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).
✏️
Siozos Thomas
🔑
You can check out the full lecense here This project is lecensed under the terms of the MIT license.