A musical instrument rental system implemented as part of the Software Engineering final assignment at INF-UFRGS
Make sure you have all the required python packages installed (requirements.txt
) and terminal is located in app directory.
You must have a postgres machine to create our database. Then, you should do:
- Set
POSTGRES_USER
to postgres user; - Set
POSTGRES_PASSWORD
to postgres password; - Set
RENTAL_POSTGRES_DB_NAME
; - Set
RENTAL_POSTGRES_USER
; - Copy
postgres/db-setup.sh
to this machine; - Run
postgres/db-setup.sh
in it to create users and tables.
- Set
RENTAL_DATABASE_HOST
to postgres ip; - Set
RENTAL_DATABASE_PORT
to postgres port; - Set
RENTAL_DATABASE_DATABASE
to database name; - Set
RENTAL_DATABASE_USER
to database user with all privileges; - Set
RENTAL_DATABASE_PASSWORD
to database password; - Run
make run
.
- Run
make build-postgres
; - Run
make up-postgres
.
- Set
RENTAL_DATABASE_HOST=localhost
; - Set
RENTAL_DATABASE_PORT=5432
- Set
RENTAL_DATABASE_DATABASE=music_rental
; - Set
RENTAL_DATABASE_USER=rental_admin
; - Set
RENTAL_DATABASE_PASSWORD=password
; - Run
make run
.