Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

codepointtku/PalveluViuhka

Repository files navigation

PalveluViuhka

Installation

Prepare and activate virtualenv

  • Windows
python -m venv env
call env/scripts/activate
  • Linux
python3 -m venv env
source venv/bin/activate

Install required packages

Install all packages required for development with pip command:

pip install -r requirements.txt

Create the database

  • 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"

Build Employment Search static resources

Make sure you have nodejs installed.

  • Linux
chmod +x ./build-resources.sh
./build-resources.sh
  • Windows
start build-resources.bat

Dev environment configuration

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'

Run Django migrations and import data

python manage.py migrate
python manage.py createsuperuser

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published