Basic Bank System with Web GUI and database
To create a virtual environment, run the following command:
python -m venv .venv
source .venv/bin/activate
python -m venv .venv
.venv\scripts\activate
Install the required Python Modules
python -m pip install -r requirements.txt
To set up the database, perform the following step:
-
Show up to migration files:
python manage.py migrate
You can use the bin/randCus.py and bin/randAct.py for generating sample data for your database.
After all setup, you can run the program with:
python manage.py runserver
Use
--insecure
if you can't get Static Files
To access the admin GUI, you need to create a superuser account first. Run the following command:
python manage.py createsuperuser
or you can run bin/userSetup.py for Account Setup
For access, you need to go to http://IP_ADDRESS/admin
Note: Please ensure that your database migrations are applied before running the
createsuperuser
command.
StadtBank have a multi language system. You can find the translates in Bank/locale. You need to compile them for the see Translates
python manage.py compilemessages
You can change the msgstr
in the *.po
files. Every Text have a msgid and over them you can see where they used.
python manage.py makemessages -l LANGUAGE_CODE
It is still in development. I'm not very good with it. Up now I only did what I found in internet for it., You can find the links in settings.py
You can run this command
openssl req -x509 -newkey rsa:4096 -keyout cets/server.key -out cers/server.pem -days 365 -nodes
or you can use the certs/file.sh for CA certificate
CHECK THE CONFIGURATION IN certs/file.sh BEFORE RUN IT !!!
python manage.py runserver_plus --cert-file certs/server.pem --key-file certs/server.key --insecure 127.0.0.1:443