2016-08-29 20:01:10 +03:00
2016-08-25 20:15:19 +03:00
2016-08-25 21:20:31 +03:00
2016-08-25 21:31:22 +03:00
2016-05-18 19:27:22 +03:00
2016-05-30 19:16:14 +03:00
2016-05-30 19:13:48 +03:00

SIKWEB 2.0

##Installation

Create virtualenvironment for python

virtualenv -p python3 virtualenv.sikweb

Install py3 dev

sudo apt-get install python3-dev

clone This repo and enter it

git clone url_to_repo

cd url_to_repo

Activate virtualenv (assuming we are on root of this repo and virtualenv is one step above)

. ../virtualenv.sikweb/bin/activate

install required python modules

pip install --upgrade pip

pip install -r requirements.txt

Install Mariadb and create necessary tables

sudo apt-get install mariadb

CREATE USER 'sik'@'localhost' IDENTIFIED BY 'jokutmpassu';
CREATE DATABASE sik DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON sik.* TO 'sik'@'localhost';
CREATE DATABASE sik_test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON sik_test.* TO 'sik'@'localhost';

Configure django's settings

cp sikweb/settings-sample.py sikweb/settings.py

edit database settings from sikweb/settings.py according to what you used above.

run ./manage.py migrate

you should be now have succesfully setup a devel version of sikweb 2.0

Running

Activate virtualenv

assuming we are on root of this repo and virtualenv is one step above:

. ../virtualenv.sikweb/bin/activate

use runserver command

./manage.py runserver

or./manage.py runserver 0.0.0.0:8000 if you need to connect from anywhere else than localhost

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%