An open API service indexing awesome lists of open source software.

https://github.com/samzhangjy/onlinestore

An online store built with Python and Flask
https://github.com/samzhangjy/onlinestore

flask python web

Last synced: about 1 month ago
JSON representation

An online store built with Python and Flask

Awesome Lists containing this project

README

          

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:
```text
DATABASE_PASS=
DATABASE_NAME=
FLASK_DEBUG=
ADMIN_USERNAME = admin
ADMIN_PASSWORD = admin

```

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

```

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