POPONG API source code.
Python Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.conf.samples
api Make assembly_id filter optional Apr 4, 2016
utils Standalone API server extracted from Pokr Apr 21, 2014
.gitignore Simplify .gitignore Apr 21, 2014
LICENSE Initial commit Apr 21, 2014
Makefile Standalone API server extracted from Pokr Apr 21, 2014
README.md update readme file for setting DB Aug 2, 2015
run.py Standalone API server extracted from Pokr Apr 21, 2014
settings.py

README.md

POPONG API

POPONG API server

Download

$ git clone https://github.com/teampopong/popong-api.git
$ cd popong-api

Setup

  1. Create & modify configuration files

    $ make init
    $ createuser postgres
    
    • Set password for user "postgres" in PostgreSQL
  2. Create & init DB (You should first obtain a pokrdb.dump from here)

    $ sudo -u postgres psql -h localhost -U postgres -c 'CREATE DATABASE pokrdb;'
    $ sudo -u postgres psql -d pokrdb -f pokrdb.dump
    
    • Modify SQLALCHEMY_URI in settings.py

      • set SQLALCHEMY_URI variale as "postgresql://ID_HERE:PASSWD_HERE@HOST_HERE:PORT/DB_NAME"
      • ID_HERE: postgres id (ex: postgres)
      • PASSWD_HERE: postgres pw
      • HOST_HERE: postgres host (ex: localhost)

      $ pip install git+https://github.com/teampopong/popong-models.git

Run

$ ./run.py [-d] [--port PORT]
    -d : enable debug
    --port : port_number