A simple online exchange for trading in-game commodities in Settlers of Catan.
Flask application, including database management for persistent storage on the server, based on this tutorial.
Notifications are pushed to browser clients via websocket connections.
Deployed to free heroku app: arcane-inlet-24402
Set environment variables:
FLASK_APP=exchange.py
- (
DATABASE_URL
is set automatically)
To deploy new version to heroku (help):
- Commit changes to local git repository
$ heroku login
$ git push heroku master
To connect to custom domain: (help):
heroku domains:add subdomain.example.com
- Configure app's DNS provider to point to the DNS Target
example.herokudns.com
/<account>
Individual user dashboard page to create/cancel orders, view best bid/ask and latest prices.
If account does not exist, one is created automatically with a default balance.
/admin
Admin page to delete all accounts, orders and trades.
REST API to create, update and delete orders and accounts
DELETE /api
Delete all accounts, orders and trades