Skip to content

Execution

Liam Fruzyna edited this page Jan 27, 2024 · 1 revision

In general any web server should be able to host this app out of the box, but some features requires some more complexity. A simple implementation of the built-in Python web server is included which allows a user to upload results back to the host but this requires a desktop platform or remote host at this time. There is also an included Dockerfile and docker-compose file.

Run as Docker container

A docker compose file is provided in the /docker directory. To pull the image and run it run the following commands. docker-compose.yml can be edited to change the port mapping and The Blue Alliance API key.

docker-compose pull
docker-compose up -d

Run Python webserver

Python 3 is required to run the server. An optional The Blue Alliance API key can be provided at runtime, otherwise, the app will use the value in scripts/keys.js. The port used can be changed in the top of the Python script.

TBA_KEY=[TBA_API_KEY] python3 python/post-server.py
Clone this wiki locally