- Windows
python -m venv env
call env/scripts/activate
- Linux
python3 -m venv env
source venv/bin/activate
Install all packages required for development with pip command:
pip install -r requirements.txt
- Linux
sudo -u postgres psql -c "create role employment with encrypted password 'secure-password';"
sudo -u postgres psql -c "create database employment_services"
- Windows
psql -U postgres -c "create role employment with encrypted password 'secure-password';"
psql -U postgres -c "create database employment_services"
Make sure you have nodejs installed.
- Linux
chmod +x ./build-resources.sh
./build-resources.sh
- Windows
start build-resources.bat
Create a file employment/.env
to configure the dev environment e.g.:
DEBUG=1
ALLOWED_HOSTS='*'
DATABASE_NAME='employment_services'
DATABASE_USER='employment'
DATABASE_PASSWORD='secure-password'
python manage.py migrate
python manage.py createsuperuser