ROJECT FOLDERS
-
/app
-- This folder contains the main application files -
/app/templates
-- This contains all the html files for this project -
/app/static
-- This folder contains all static files such as (.css) files and javascript(.js) files -
/app/routes
-- This folder contains application views such ascart
,categories
,orders
,users
,products
-
config.py
-- This file contains application configurations -
models.py
-- This file is where all application models are defined -
run.py
-- This is the application entry point -
database.db
-- The Actual project SQLite database
### Getting Started
These following programs are required to run this project
Python 3.6 +
Pip 19+
If you don't have python and pip installed, follow these instructions to install the latest version of python for your platform in the python docs and Pip docs to install the latest version of pip.
install project dependencies by typing the following command:
pip install -r requirements.txt
Type the following commands to start the server
On Bash
export FLASK_APP=run.py
//Tell flask the file which contains flask instance
export FLASK_ENV=development
//To run the app in debugging mode
On Windows Default Command-Line
SET FLASK_APP=run.py
SET FLASK_ENV=development
flask run
After running the server, access the store home page using any browser through the following url: