You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Docker file is provided to make the installation easier. You NEED to create configuration file name .env (you can use the .env.example file as a template) :
# URL of the APIHOST=0.0.0.0
# URL of the ILLKIRCH menu websiteILLKIRCH=
# URL of the CRONENBOURG menu websiteCRONENBOURG=
# URL of the PAUL APPELL menu websitePAUL_APPELL=
# URL of the Esplanade menu websiteESPLANADE=
# URL of the Gallia menu websiteGALLIA=
To use it, you can build the Docker image an runing it :
If you have some troubles with the installation of the pycurl library, make sure to have installed the libcurl4-openssl-dev and the libssl-dev packages :
sudo apt install libcurl4-openssl-dev libssl-dev
To configure the api, you need to create configuration file name .env (you can use the .env.example file as a template) :
# URL of the APIHOST=
# URL of the ILLKIRCH menu websiteILLKIRCH=
# URL of the CRONENBOURG menu websiteCRONENBOURG=
# URL of the PAUL APPELL menu websitePAUL_APPELL=
# URL of the Esplanade menu websiteESPLANADE=
# URL of the Gallia menu websiteGALLIA=
🚀 Launch with Python
To launch the bot, you need to run the main.py file :
python3 main.py
📝 How to use it
To use it, you need to connect to the API URL you have configured in the .env file with the port 5000. The accessibles URL are :
/ : Display the available routes
/illkirch : Display the menu of the ILLKIRCH restaurant
/cronenbourg : Display the menu of the CRONENBOURG restaurant
/paul-appell : Display the menu of the PAUL APPELL restaurant
/esplanade : Display the menu of the ESPLANADE restaurant
/gallia : Display the menu of the GALLIA restaurant
An example of the output for the /illkirch route can be find in the example.json file.
🐞 Bugs and TODO
Add threads to make the answer faster
About
App used to create an API for many Crous restaurants in Strasbourg.