Django Admin (CMS)
Buying product ( create cart, add item to cart, submit order)
Storing/Retrieve/Add new product
Provide a basic online store API for storing/buying products.
After that just install the local dependencies, run migrations, and start the server.
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