Skip to content

MahdiPeydai/Coffee-shop

Repository files navigation

Coffee-shop

Coffee Shop is an online coffee shop that you can sell your all related products to coffee.
In admin panel you can create,update and delete users. you can set roles for them and set permission for each roll. You can manage your products in it and you can set each product in different categories.
Users have cart and are able to add to or remove products from it and after that can make orders and go for payment. Users also have a dashboard that they can manage their profile and can see their orders.

Development

  • Flask framework
  • Mysql database
  • SQLAlchemy for handling ORM
  • WTForms for handling forms
  • Webpack assets bundle

How To Run

after cloning the repo you need first to install requirements:

$ pip install -r requirements.txt

then create a .env file in project directory and set these configs in it:

  • MYSQL_USER
  • MYSQL_PASSWORD
  • MYSQL_HOST
  • MYSQL_DB
  • SQLALCHEMY_DATABASE_URI
  • SECRET_KEY
  • CATEGORY_IMAGE_FOLDER
  • PRODUCT_IMAGE_FOLDER

after that, to initialize migration:
* assuming you have installed MySQL already*

$ flask db init
$ flask db migrate -m "Initial migration."
$ flask db upgrade

then bundle the asset files:

$ npm run dev

it's done. Now you can run it

$ flask --app app --debug run

Have Fun

About

Online Coffee Shop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published