Golden Horizon Bank (GHB) is a simple Banking System website developed with Django and Supabase as the database. It was created as part of a 1st-semester Python project. The website enables users to create accounts, log in, and perform basic banking operations, including transferring points to other accounts using the receiver's ID and name. Additionally, users can change their passwords and edit their profiles once logged in.
- Python 3.x
- Supabase project credentials
-
Clone the repository from GitHub:
git clone https://github.com/Ashenoy64/Banking-System.git cd Banking-System
or
Download the project as a ZIP file from the GitHub repository:
- Go to the GitHub repository URL: https://github.com/Ashenoy64/Banking-System
- Click on the green "Code" button.
- Select "Download ZIP" from the dropdown menu.
- Extract the ZIP file to a local directory and navigate to the project folder.
-
Create a
.env
file at the root of the project and add the following keys:SECRET='<YOUR_RANDOM_SECRET_KEY>' SUPA_PASSWORD=<YOUR_SUPABASE_PASSWORD> SUPA_HOST=<YOUR_SUPABASE_HOST> SUPA_DATABASE=<YOUR_SUPABASE_DATABASE> SUPA_PORT=<YOUR_SUPABASE_PORT> SUPA_USER=<YOUR_SUPABASE_USER>
-
To generate the
<YOUR_RANDOM_SECRET_KEY>
:- You can use an online Django secret key generator like https://djecrety.ir/.
- Alternatively, you can generate it using the Django management shell:
- Open a terminal or command prompt and navigate to the root directory of your Django project.
- Run the following command to enter the Django management shell:
python manage.py shell
- Once you are inside the shell, execute the following Python code to generate the random secret key:
from django.core.management.utils import get_random_secret_key secret_key = get_random_secret_key() print(secret_key)
- Copy the generated secret key and paste it as
<YOUR_RANDOM_SECRET_KEY>
in your.env
file.
-
Replace
<YOUR_SUPABASE_PASSWORD>
,<YOUR_SUPABASE_HOST>
,<YOUR_SUPABASE_DATABASE>
,<YOUR_SUPABASE_PORT>
, and<YOUR_SUPABASE_USER>
with your Supabase project credentials.
-
-
Install the required Python packages:
pip install -r requirements.txt
-
Create the required tables on the Supabase database:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Access the Golden Horizon Bank website on your local server at
http://127.0.0.1:8000/
.
This project was developed as part of a 1st-semester Python project and does not have various features or an elaborate UI. It is intended for educational purposes, showcasing the implementation of a basic Banking System using Django and Supabase.
This project is licensed under the MIT License.
We would like to acknowledge the various online resources and tutorials that aided us in building this project. Special thanks to the Django and Supabase communities for their invaluable support and documentation.
If you have any questions or suggestions, please feel free to contact us at ashenoy64@gmail.com
. We hope you find this project insightful and educational. Happy coding!