git pull
docker compose up -d --build
make up
Download python and install it from official site https://www.python.org/
git clone https://github.com/h4x4d/UniChoose.git
cd UniChoose
python -m venv venv
Windows:
.\venv\Scripts\activate
Windows with bash:
. venv/Scripts/activate
Linux:
source venv/bin/activate
make use
poetry install
Make shortcut:
make install
poetry install --with dev
Make shortcut:
make install-dev
pip install -r requirements.txt
Make shortcut:
make pip-install
pip install -r requirements-dev.txt
Make shortcut:
make pip-install-dev
SECRET_KEY=AYDFHIJUOAIKPLDFFDbi
DEBUG=1
ALLOWED_HOSTS=127.0.0.1 localhost
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=postgres
SQL_USER=postgres
SQL_PASSWORD=iamnotpassword
SQL_HOST=localhost
SQL_PORT=5432
env-prod
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=postgres
SQL_USER=postgres
SQL_PASSWORD=iamnotpassword
SQL_HOST=db
SQL_PORT=5433
env-prod.db
POSTGRES_DB=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PASSWORD=iamnotpassword
docker compose up -d --build
Make shortcut:
make up
poetry run python manage.py runserver
Make shortcut:
make run
python manage.py runserver
Make shortcut:
make pip-run