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.)
- Python 2.7.14
- Flask
- gunicorn
- gspread, and the Google Drive API
- a decent Internet connection
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.
- /r/Reddit Emblem
- Python Flask documentation
- /r/flask
- Jinja 2 Template documentation
- The Flask Mega-Tutorial, by Miguel Grinberg
- Python csv documentation, used in /static/spreadsheet.py
- w3Schools, with helpful tutorials for HTML, CSS, JavaScript, and SQL
- Bootstrap, helpful pre-made, open-source JS code and CSS templates
- The Python + gspread Twilio tutorial, by Greg Baugues
- [gspread], a Python package by Anton Burnashev
- The Google Sheets API Reference
- datademofun's Heroku deployment tutorial/documentation for Flask apps
- 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!