Skip to content

thesloppyguy/HeartGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resulting Platform

Website Image

Mobile App Image1 Mobile App Image2

## Run commands:-
  • pip install virtual env

  • virtualenv env

  • env/Scripts/activate

  • pip install -r requirements.txt

  • FLASK_APP = app.py

  • flask --debug run

Note:- Python version 3.9

File structure:-

app.py- main backend with routes and logic

Templates- html files

Static-

  • assets
  • css
  • fonts
  • images
  • js
  • webfonts

ML- machine learning files and algorithms

Setting path for flask

  • General Syntax
    {{ url_for(FOLDER NAME, filename=PATH) }}
    EXAMPLE:-
    {{ url_for('static', filename='/css/all.css') }}

Adding Routes in flask (inside app.py)

@app.route(PATH, methods=['POST', 'GET'])
def FUNCTION_NAME():
    return render_template(HTML FILE)
example:-
@app.route('/home')
def index():
  return render_template('index.html')

Note:- all the file are already linked in the Layout HTML NAV section set routes according to that only.

Note:- Jinja inheritance should be used accross the files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •