Skip to content

dimbas/yms-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yms-clone

Simple market clone. Simply shows list of "products" and have simple per product page.

Have admin panel.

Table of Contents

License

yms-clone is distributed under the terms of the MIT License.

Usage

First, specify db url connection and export it into shell ENV variable.

After you need to create database table^

$ yms-clone shell
>>> db.create_all()
>>>

If you want to create demo fake data, you can use Product.create_db_fake_data in shell dialog to create. It finds count-1 random images, using thecatapi.com api.

>>> Product.create_db_fake_data(app, 25)
>>>

It will takes some time to fetch all images and create db records.

To start application use cli:

$ yms-clone runserver

Don't forget to use -? or --help if you want use some more options.

After you start server, you can go to / index page (it will redirect to /products page) or to /admin page, to access admin panel.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published