Task by BPK Tech, Hyderabad
Steps to execute:
- Open Command Line Interface (Terminal in Linux, CMD prompt in windows)
- Navigate to Project Directory
- (Optional) Create and Activate Virtual Environment
- Install Dependencies in requirements.txt (pip install -r requirements.txt)
- Run app.py using coomand: flask run
- If succesfful, message will be displayed as: * Running on http://127.0.0.1:5000
- In Browser, provide address of server with port number displayed (Here 127.0.0.1:5000)
- Congratulations You can access Application.
Files descrition:
- app.py : Main executable file for application contains logic to handle and store data.
- templates/hello.html : Provide User Interface. It is default startup page.
- templates/base.html : Common html content of every page like Navigation bar, footer, title, etc. Used to reuse html content for every page.
- templates/upadte.html : You will navigate to this page when you click on Update button.
- static/ : This folder includes css and javascript files for additional formatting and control
- instance/data.db : Database file storing all the data you entered in Add Student data form. One can view this data using (https://inloop.github.io/sqlite-viewer/)
- Procfile : Process file indicates to run gunicorn HTTP server on application Startup
- requirements.txt : Required dependencies/modules to run application. Note: If you are using Virtual environment, ensure that all dependencies installed in virutal environment. You can check this dependencies in lib sub-directory of virtual environment directory.