/OnlineStore

An online store built with Python and Flask

Primary LanguagePython

Flask Store

This is an online store built with Python and its web framework, Flask.

Usage

To run this program is quite easy. First, do pip install -r requirements.txt to install all packages including Flask, werkzeug and others.

Then, create a new file called .env. It should have content like below:

DATABASE_PASS=<your-mysql-database-password>
DATABASE_NAME=<your-mysql-database-name>
FLASK_DEBUG=<debug-or-not>
ADMIN_USERNAME = admin
ADMIN_PASSWORD = admin

Then, create a new file called sendgrid.txt and should contain the content below:

apikey
<your-sendgrid-apikey-here>

DO NOT MODIFY THE FIRST LINE. OTHERWISE IT WON'T WORK.

Finally, run flask db upgrade and do flask run to run the website, or just run app.py in the root dictionary.

About the advanced features:

Contactus with the email system ineract with database size-choose button for each items implement the encryption with the secret key hash to deal with pw use admin account to add product to the database set the cookie to remember your password