Example application using Kobin python web-framework.
Python TypeScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
front
server
.gitignore
LICENSE
README.md
anim.gif
docker-compose.yml
envrc

README.md

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