taanguyen / ShopCube

Open Ecommerce solution for Shops. Complete with cart and wishlist. Powered by Shopyo, a Python web framework built on top of Flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShopCube

alt text

Create a virtual environment and activate it

install requirements

pip install -r reqs/app.txt
pip install -r reqs/dev.txt
cd shopyo
python manage.py initialise
python manage.py rundebug

using shopyo/shopcube.db as db

browse around and go to /dashboard with login admin@domain.com and password pass

Current features:

  • cart
  • wishlist
  • stock
  • orders

Read the shopyo docs to get more development insights

View a live demo of ShopCube deployed to PythonAnywhere.

Config DB

In shopyo/ create a new folder called instance

In shopyo/instance/ create a new file called config.py

In config.py add something like that, the following is for mysql:

SQLALCHEMY_DATABASE_URI = "mysql+pymysql://{username}:{password}@{server_name}/{db_name}".format(
    username='shopcube',
    password='pass1234-A',
    server_name='localhost',
    db_name='shopcube'
)

About

Open Ecommerce solution for Shops. Complete with cart and wishlist. Powered by Shopyo, a Python web framework built on top of Flask

License:Other


Languages

Language:JavaScript 34.6%Language:Python 32.5%Language:HTML 32.2%Language:CSS 0.6%Language:Makefile 0.0%Language:Dockerfile 0.0%