Skip to content

dongtandung2001/Store-API

Repository files navigation

Introduction

Logo

Main features

Django Admin (CMS)

Buying product ( create cart, add item to cart, submit order)

Storing/Retrieve/Add new product

Usage

Provide a basic online store API for storing/buying products.

After that just install the local dependencies, run migrations, and start the server.

Online Store API

Getting Started

First clone the repository from Github:

$ git clone https://github.com/dongtandung2001/Store-API

Install project dependencies:

$ pipenv install  

Activate the virtualenv for your project:

$ pipenv shell

Then simply apply the migrations:

$ python manage.py migrate

Update password of your MySQL database in storefront/settings/dev

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'storefront',
        'USER': 'root',
        'PASSWORD': 'Your database password'
    }
}

Populate database:

$ python manage.py seed_db

You can now run the development server:

$ python manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages