Hello! This is a Cash App clone!
USER(user_id, user_name)
USER_FRIEND(user_id, friend)
USER_HAS_GROUP_EXPENSE(user_id, group_id, expense_id)
HAS_GROUP(group_id, group_name)
EXPENSE(expense_id, creditor, amount, is_settled, expense_date)
Folders
scipts
- the sql scriptslocal
- script for generating the database locallyremote
- script for generating the database remotesrc
- python scripts
In running the app is separated by the remote and local database. But first installing the environment and the requirements
- Installation of
python (v.3.9)
or creating an environment - Installing the requirements
pip install -r ./requirements.txt
- Also get the
.env
in the root directory of the file
The remote database uses the the remote database using railway app. Thus, only needed to run the main app
- Running the app
make run
The local database uses the scripts to generate the new database and populating it.
- Populating the database
make create-database
make populate-database
make create-admin
- Accessing the database
mysql -uadmin -padmin --database=127project
- Running the main app
make run
The make file automate the development of the database
|_ make create-database
| - script that will create the database and the tables
| note: that it will not populate the database yet
|_ make populate-database
| - after creating the database, populating the database is next. python script that will populate the tables in the database
|_ make create-admin
| - create admin user for that is granted all priveleges for all tables in the databse
|_ make delete-database
| - deletes the database
|_ make run
- run the app