Server has been created for the final project in PV207 Businnes Process Management course taught at Faculty of Informatics, Masaryk University, Brno.
Technologies used: Python Django, PostgreSQL, Docker in deployment
- Create virtual environment:
python3 -m venv <CUSTOM_ENV_NAME>
- Run virtual environment:
source ./<CUSTOM_ENV_NAME>/bin/activate
- Clone this repository
- Move to it:
cd folt/
- Install dependencies:
pip3 install -r requirements.txt
- Change database settings in
folt/settings.py
according to your PostgreSQL DB:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '<YOUR_DB_NAME>',
'USER': '<YOUR_DB_USER>',
'PASSWORD': '<YOUR_DB_USER_PASSWORD>',
'HOST': os.environ.get('POSTGRES_HOST', 'localhost'),
'PORT': os.environ['POSTGRES_PORT'] if 'POSTGRES_PORT' in os.environ else '',
'USE_TZ': None,
}
}
- Make migrations to your DB:
python3 manage.py makemigrations
- Migrate to your DB:
python3 manage.py migrate
- Create super user:
python3 manage.py createsuperuser
- Run the server:
python3 manage.py runserver
Exit the environment by running: deactivate
/folt/last-offer
/folt/couriers
/folt/pickups
/folt/ntr/checkSubject