-
Download the latest version of Python from the official Python website.
-
Run the Installer. (Important: Check the box "Add Python to PATH" before clicking "Install Now.")
-
Open Command Prompt (search for
cmdin the Start menu). -
cdsomewhere convinient.cd some\directory
-
Clone this repository. (If git is not installed, install it, and close and reopen the
cmd.)git clone git@github.com:kmirzavaziri/arithland-bank.git cd arithland-bank -
Create a virtual environment.
python -m venv venv
-
Activate the Virtual Environment. (After activation, your Command Prompt will show
(venv)at the beginning of the line, indicating that the virtual environment is active.)venv\Scripts\activate
-
Install requirements.
pip install -r requirements.txt
-
Open Command Prompt (search for
cmdin the Start menu). -
cdto the project directory.cd some\directory\arithland-bank
-
Activate the venv.
venv\Scripts\activate
-
(Optionally) clear existing data, by deleting the file
db.sqlite3. -
Migrate the database. (If it's the first time, or you deleted the data)
python manage.py migrate
-
Create an admin. (If it's the first time, or you deleted the data)
python manage.py createsuperuser
-
Run the server.
python manage.py runserver 0.0.0.0:8000
-
Open the application 0.0.0.0:8000 and login with admin credentials.
-
Find your machine's local IP, and share with other machines in the same network, they can access it using the address
THE_IP:8000. (You might need to disable the firewall on the server machine.)
make init-ansible
make ansible-instance
And then trigger deploy pipeline.
- team card background
- add revert transaction functionality