thisAKcode / fastapi_streetart_map

0 stars 0 forks source link

attempt to setup templates #8

Closed thisAKcode closed 1 year ago

thisAKcode commented 1 year ago

I added some static html from loci to have a template leaflet app to continue with.

problem: the string below normally should render a map. http://127.0.0.1:8000/templates/index.html

bbelderbos commented 1 year ago

@thisAKcode let me try it tomorrow, so it's not yet working?

thisAKcode commented 1 year ago

@bbelderbos Hey

I think you could wait untill next week- it's quite a mess in code there. I will work on it on WE- I haven't had s time to look at it properly .

Otherwise you could focus on sending data to index html. What I wish to achieve right now is 1.By means of get method of api get data from sqlitedb

  1. Send to template file index.html wich I want to be accecced at my route(/).

  2. simply render plain text on html.

  3. I have router.py and main py that both have code to make routes. I wish to move route thing from main to router.py

5 as bonus, practice use of jinja. (How do I use extend base).

bbelderbos commented 1 year ago

@thisAKcode ok, keep coding and shoot me a PR next week (merge all in and make a new branch) with questions / blockers for me to review. Thanks. Have a good weekend.