Simple server for Little Talks using Flask Framework and SQLite3 or Postgres. It´s an experimental chat server based on a latitude/longitude location.
We just receive a POST
request on root and response the last 25 msgs in that location.
- msg: message you want to send. (blank to send nothing)
- nickname: a nickname of your user
- lat: latitude you want to talk
- lng: longitude you want to talk
- Shell formatted text with 25 last message;
MSG_TABLE
: Table name for the messages;DB
:psql
for Postgres andsqlite
for Sqlite;
If you are using Postgres
:
PS_DATABASE
= Database name;PS_USER
= Database user;PS_PASSWORD
= Database password;PS_HOST
= Database host;PS_PORT
= Database Port. In general 5432;
pip install -r requirements-dev.txt
pip install -r requirements.txt
flask run