POPONG API server
$ git clone https://github.com/teampopong/popong-api.git
$ cd popong-api
-
Create & modify configuration files
$ make init $ createuser postgres- Set password for user "postgres" in PostgreSQL
-
Create & init DB (You should first obtain a
pokrdb.dumpfrom here)$ sudo -u postgres psql -h localhost -U postgres -c 'CREATE DATABASE pokrdb;' $ sudo -u postgres psql -d pokrdb -f pokrdb.dump-
Modify
SQLALCHEMY_URIin 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 pwHOST_HERE: postgres host (ex: localhost)
$ pip install git+https://github.com/teampopong/popong-models.git
-
$ ./run.py [-d] [--port PORT]
-d : enable debug
--port : port_number