Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 744 Bytes

File metadata and controls

27 lines (18 loc) · 744 Bytes

Description

A simple match history API for the Lambda Wars game (https://lambdawars.com), written using Flask. Provides rest api to record or retrieves matches and validates the players against the Steam api.

Requirements

  • Python
  • Virtualenv: pip install virtualenv

Setup

  1. virtualenv venv
  2. venv/bin/activate
  3. pip install -r requirements.txt

Run development server

  1. venv/bin/activate
  2. python run.py

MySQL database

By default it creates a sqlite database. To connect to a mysql database, do:

  1. Open instance/application.cfg (create if needed)
  2. Add the following configuration line and adjust for your database: SQLALCHEMY_DATABASE_URI = 'mysql://username:password@server/database'