How To Build
Requirements
- Node + Npm (https://nodejs.org/dist/v6.9.5/node-v6.9.5-x64.msi)
- Python + Pip (https://www.python.org/ftp/python/3.6.0/python-3.6.0-embed-amd64.zip and https://pip.pypa.io/en/stable/installing/)
- postgreSQL
Installation
git clone https://gitlab.com/PPL2017csui/PPLA1.git kape
cd kape
npm install
pip install -r requirements.txt
-
psql
insert these queries:-
create user kape password 'kape';
to create user. -
create database kape;
to create database.
-
-
python manage.py migrate
To migrate all the database
Run Development Mode App
npm run webpack
- on a different terminal, run
python manage.py runserver
Now go to localhost:8000 and you'll see the App running!
Deployment
- Clone this repository
- Install docker, you can do this manually or using
bash /provision/setup-docker.sh
- Deploy using
bash /provision/run-docker.sh DOCKERNAME APP_PORT SSH_PORT
for examplebash /provision/run-docker.sh staging 8000 8022
- Profit
This project uses Django Webpack Loader.