The goal: Simple webapp to determine if an order was profitable or not by protocolling and analyzing income, outcome and time spent.
App for recording time spent and expenses for orders on the one hand and revenues on the other. The aim of the app is to clearly show what the profit margin or loss was on an order. For this purpose, each employee should be able to book his time on an order. Each employee should have an hourly rate stored. The planned sales price is also stored in the order. The further the sum of all time spent and expenses is from the bottom of the sales price, the more profitable the order was.
-
Make sure youe have Docker (inkl. docker-compose) and Git installed
-
Clone this repo & spin up the container:
git clone https://github.com/joundso/project-effectivity.git bash ./start.sh
-
Access the included components:
- The pgAdmin database inspection frontend is running under localhost:5050
- Set up a password (e.g.
admin
) - Set up the connection to the postgres service which was also set up in the previous docker-compose (the following vars ca be changed in postgres.env):
- "Add new server"
- Host name/address:
postgres
- Port:
5432
- Username:
postgres
- Password:
changeme
- Set up a password (e.g.
- The Budibase toolkit for low-/no-code building the app is available under localhost:10000
- The pgAdmin database inspection frontend is running under localhost:5050
- UI is available here: localhost:5050
- To access the
ERD tool
to design the database scheme:- Connect to the database within pgAdmin (click e.g. on the database
budibase
on the left: Servers --> postgres --> Databases --> budibase) - At the top menu bar, select Tools --> ERD tool
- The empty ERD tool opens. Press CTRL + O (or click Load Project) in the top left corner of the new ERD tool window
- Navigate to the path
/home/mount/
and open the filepgadmin_db_schema.json
- Connect to the database within pgAdmin (click e.g. on the database
-
To compress app files for the budibase import:
cd ./data/budibase/ tar -zcvf ../app.tar.gz *
pgadmin
and postgres docker-compose was adapted from @khezen (https://github.com/khezen/compose-postgres).