Skip to content

richardtguy/catanex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatanEX

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

Setup

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

Usage

Dashboard

/<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 Admin page to delete all accounts, orders and trades.

API

REST API to create, update and delete orders and accounts

Delete everything

DELETE /api Delete all accounts, orders and trades

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published