This is the backend of SRP Tracker. It consists of two parts: Cron scripts and a Flask server. The Cron scripts are triggered via Vercel and scrapes https://hub.shutokorevivalproject.com/timing/points for data. The Flask server serves as a proxy to access the data stored in the database.
- Clone the repository.
- Install packages via virtual environment.
python -m venv .venv
source .venv/bin/activate # or ./venv/Scripts/activate on windows
pip install -r requirements.txt
- Fill out your environment details into a
.env
mimicking thesample.env
. - Run the following commands
# For Flask server
flask --app api/app run --debug
# For Cron script
python cron/leaderboardPointsCrawler.py
This project is licensed under the GNU General Public License. See LICENSE
for more information.