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

Latest commit

 

History

History
68 lines (47 loc) · 1.18 KB

README.md

File metadata and controls

68 lines (47 loc) · 1.18 KB

kobin-todo

Todo application using Kobin.

animation

Running Kobin TODO by Docker

Set Environment Variables.

export KOBIN_TODO_GITHUB_CLIENT_ID=xxxxxxxxxxxxxxxxxxxx
export KOBIN_TODO_GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Run with Docker.

$ docker-compose build
$ docker-compose up -d
$ docker-compose run server python manage.py migrate

Other:

  • bash: docker-compose exec server /bin/bash
  • logs: docker-compose logs -f server
  • psql: psql -h localhost --user kobin kobintodo

How to build

Set Environment Variables

export KOBIN_TODO_ENV=develop
export KOBIN_TODO_GITHUB_CLIENT_ID=xxxxxxxxxxxxxxxxxxxx
export KOBIN_TODO_GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Compile TypeScript and Stylus

$ cd front
$ npm install
$ npm run build

Run redis and postgresql

$ docker-compose up -d redis postgres

Setup python interpreter

$ python3.6 -m venv venv
$ source venv/bin/activate
$ pip install -c requirements/constraints.txt -r requirements/general.txt -r requirements.dev.txt
$ python manage.py migrate

Run

$ python manage.py run