SIKWEB 2.0

Accessing the source

Clone this repository and enter it

Set up your SSH key authentication in GitLab Profile Settings. Then clone the repository:

git clone git@sika.sahkoinsinoorikilta.fi:vtmk/web2.0.git
cd web2.0

Change to the development branch:

git checkout develop

Install Python3

Version >3.5 is needed. Installation instructions at: https://www.python.org/

Install PostgreSQL

Version >9.5 is needed. Installation instructions at: https://www.postgresql.org/

Install dependencies

The following Debian packages are needed. If you're using something else, find the corresponding packages from your distribution's repository.

  • python3-dev
  • libffi-dev
  • python3-cffi
  • libssl-dev

Install them with apt:

sudo apt install python3-dev libffi-dev python3-cffi libssl-dev

Create a virtual environment for python

virtualenv -p python3 ../virtualenv.sikweb

Activate virtualenv

Assuming we are at the root of this repository and virtualenv is one level above:

. ../virtualenv.sikweb/bin/activate

Install wizard

Run the install wizard with

sh setup.sh

and follow the instructions.

Running

Use runserver command

python manage.py runserver 0.0.0.0:8000

Using address 0.0.0.0 will bind all IP addresses.

Visit the page

Visit https://localhost:8000 in your browser!

Run unit tests

python manage.py test -v 2
S
Description
Web 2.0 Backend. Django, Angular
Readme 21 MiB
Languages
JavaScript 54.6%
Python 36.7%
HTML 6.6%
CSS 1.8%
Shell 0.2%