Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
user avatar
sirinbaisa authored
481e7ba7
History

How To Build

Requirements

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 example bash /provision/run-docker.sh staging 8000 8022
  • Profit

This project uses Django Webpack Loader.