- Make a copy of
.env.virtualenv
as.env
.
$ cp .env.virtualenv .env
- Create and activate your virtualenv.
$ virtualenv venv
$ source venv/bin/activate
- Install python packages.
$ pip install -r requirements/virtualenv.txt
- Run Django migrations.
$ python manage.py migrate
- Run Django server.
$ python manage.py runserver
- Install npm packages and run build watcher (Optional, only run if you need to work on JS).
$ npm install
$ npm run dev
- Make a copy of
.env.docker
as.env
.
$ cp .env.docker .env
- Build images and run containers.
$ docker-compose build
$ docker-compose up -d
- Run migrations
$ docker-compose run --rm web migrate
- Running Django's manage.py to run other commands
$ docker-compose run --rm web python manage.py <command>