App allows you to imitate storage monitoring system. You can see all passcards info, monitor visits journal and which passcards are active at the moment.
Python3 and Git should be already installed.
- Clone the repository by command:
git clone https://github.com/balancy/balancy-django-orm-watching-storage
- Inside cloned repository create virtual environment by command:
python -m venv env
- Activate virtual environment. For linux-based OS:
source env/bin/activate
For Windows:
env\scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Rename file
.env.example
to.env
and initialize your propre variables to initialize a database
ALLOWED_HOSTS = 127.0.0.1,localhost,your_database_host
DEBUG = True
ENGINE = 'django.db.backends.postgresql_psycopg2'
HOST = your_database_host
NAME = your_database_name
PASSWORD = your_database_password
PORT = your_database_port
USER = your_database_user
Those environmental variables are necessary for correct work of application. Some variables are already initialized by default.
- Run the script by command:
python manage.py runserver
The app will be accessible via link http://127.0.0.1:8000/
The code is written for educational purposes on online-course for web-developers dvmn.org.