Skip to content

Webapp for organizing EVE Online tournaments

License

Notifications You must be signed in to change notification settings

aliaras/eve-tournaments

 
 

Repository files navigation

EVE Tournament Organizer

Building a web application to organize EVE Tournaments, starting with solo queue

The following libraries are used:

You will also require:

  • Virtualenv to setup virtualenv
  • Depending on the database you want to use, the required libraries (by default this example uses SQLite, which is embedded in Python)

Also, this example is made with Python 2.7, it might works with Python 3, but you may have to correct some lines of code

Get and init the project

  1. Clone the repository on your system
git clone https://github.com/aliaras/eve-tournaments.git
  1. Create a virtualenv
cd flask-esipy-example
virtualenv venv
source venv/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Setup the FLASK_APP environment variable
export FLASK_APP=app.py
  1. Go to https://developers.eveonline.com
  2. Login and go to manage applications
  3. Create a new application
  4. Fill all the fields

Requirements:

  • For the scope, you will need the publicData scope
  • The callback URL must be http://<SOME_IP_OR_DOMAIN>:<SOME_PORT>/sso/callback

APP Configuration

  1. Copy and rename the config.dist to config.py
  2. Edit it.
PORT = <SOME_PORT>
HOST = '<THE_HOST_YOURE_RUNNING_ON>'
# If using a reverse-proxy to direct traffic, fill in the proxy's hostname here
EXTERNAL_HOST = '<HOST_FROM_BROWSER>'

SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'  # this is your database connection informations http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls

# Fill these lines with the data you get from https://developers.eveonline.com
ESI_SECRET_KEY = ''  # your secret key
ESI_CLIENT_ID = ''  # your client ID

How to start everything

First, you will need to run the migration to create the required user table

flask db upgrade

INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> fab636b98bc7, create_user_table

Run the app

python app.py
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 206-933-487
  • Running on http://localhost:5015/ (Press CTRL+C to quit)

And now you can connect to http://localhost:5015/ to see it working (if you kept default configs). I recommend caddy as a reverse proxy if you need one, it's very easy.

About

Webapp for organizing EVE Online tournaments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 69.5%
  • HTML 29.2%
  • Mako 1.3%