No description
| .gitea/workflows | ||
| app | ||
| TNR-Frontend | ||
| utils | ||
| .gitignore | ||
| .pylintrc | ||
| README.md | ||
| requirements.txt | ||
| TO-DO | ||
TO START
pip install -r requirements.txt
uvicorn app.app:api --reload
TO ADD ANOTHER PAGE
go to /app/templates and create a new HTML file, eg index.html
Then go to /app/main.py, scroll all the way down and add this to the bottom of the page, changing the necessary information
@app.get("/change_this_to_the_web_path", response_class=HTMLResponse)
async def change_this_to_func_name(request: Request):
return templates.TemplateResponse("your_new_file.html", {"request": request})
# Please note that everything that you need to change has to be lowercase, everything else stays the same