Cookiecutter template for GarpixCMS == 1.0.0.
- Install Docker and docker-compose.
For Debian, Ubuntu:
su
apt update; apt upgrade -y; apt install -y curl; curl -sSL https://get.docker.com/ | sh; curl -L https://github.com/docker/compose/releases/download/1.28.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
Don't forget press CTRL+D to exit from super user account.
- Apply environment variables:
cp example.env .env
-
Change a random string for
SECRET_KEY
in.env
. -
Install dependencies:
pipenv install
pipenv shell
- Up docker-compose, migrate database and create super user:
docker-compose up -d
python3 backend/manage.py makemigrations
python3 backend/manage.py migrate
python3 backend/manage.py createsuperuser
- Run the server:
python3 backend/manage.py runserver
- Enjoy!