# Re-install dependencies and re-generate lock file
rm -rf node_modules package-lock.json
npm install
# Run the API
podman run --rm -p 8000:8000 localhost/jdobes/lunch:latest
# Start node devel server
npm start
Adding a restaurant
Add <new_restaurant_name>.py with the following contents into api/restaurants
# -*- coding: utf-8 -*-from .utilsimportfetch_menicka, parse_menickaNAME="<Restaurant Name>"URL="<url>"# will be linked to by "Menu link"RESTAURANT_ID="1337"GPS= (49.23081293334384, 16.577047939793758)
defparse_menu():
menicka_html=fetch_menicka(RESTAURANT_ID)
returnparse_menicka(menicka_html)
Enable your restaurant in Containerfile by adding <new_restaurant_name> to ENV