Todo application using Kobin.
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
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