/RE-Team-O-Webapp

Reddit Emblem Team O Webapp repository (retired)

Primary LanguagePython

Webapp for Reddit Emblem Team O,

by u/Novikov_Principle

This is the repo for the RE Team O Webapp, which tracks ally and enemy stats and positions on the map, and holds convoy and shop information.

The program attempts to follow the format of the other Team Webapps, with the main difference being that this webapp was written in Python 2 with Flask, instead of JavaScript.

This application is currently deployed on Heroku!

As far as I know, the program should work on any Desktop browser. (Not tested on mobile platforms.)

Webapp requirements

  • Python 2.7.14
  • Flask
  • gunicorn
  • gspread, and the Google Drive API
  • a decent Internet connection

Additional details

This program works using Python Flask, with its built in Jinja2 Templating, along with HTML and CSS formatting. Admittedly, the code itself could see vast improvements, which will be listed in the "Future Features" section.

Due to it being written in Python, the webapp was deployed on Heroku instead of Github.io.

Part of the webapp (namely, /static/spreadsheet.py) relies on Anton Burnashev's gspread Python package. When run offline, spreadsheets.py creates a CSV file containing the general stats needed for the webapp to function, made possible with gspread. Although the resulting CSV still needs to be manually edited and split into two separate files (for Main maps and Gaiden maps), the script itself saves at least half an hour of separate data scraping, which adds up after each turn released.

Helpful links

Future Features (in no particular order)

  • improved Popover formatting, including item/weapon/skill descriptions and stat breakdowns (Base + etc.)
  • enemy Movement and Attack ranges on-click
  • proper CSS for the Webapp's index page
  • an actual Shop page, featuring Ally inventories, Gold, and Ore totals, and an item list with prices
  • tooltip text that shows Terrain information when the mouse hovers over specific Map spaces (whoa, technology!) DONE!