- Python 3.10.7
- Django 4.1.1
- Postgres 14
- BootStrap 5
- Django Rest Framework
- Copy
example.env
to.env
- Optionally make and activate python virtual environment
python3.10 -m venv venv && ./venv/bin/activate
or with alternative method - Install rerequirements if need
pip install -r ./requirements.txt
- Up DB:
- locally or
- in docker container
docker-compose -f dev-docker-compose.yml up -d
- Optionally from
app/
python manage.py makemigrations && python manage.py migrate
- If you needed to download data to your database, make next command from
app/
python manage.py loaddata database.json
- If you made point 6 login and password to superuser is:
- login -
admin
- password -
admin
- login -
- If you don't do the point 6, you mast create the superuser to login in Django Administration page.
To create superuser from app/
execute python manage.py createsuperuser
- Ubuntu 22.04 LTS
- apt update && apt install git-core docker-compose
- git clone https://github.com/krlvn/codeBusters
- cd CodeBusters
- cp example.env .env
- make DEBUG=False, email settings in .env
- docker-compose up