kksaki / CS551Q_ASSIGNMENT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigBasket Shopping Website

SunJiaqi

Website link

https://shrouded-everglades-97784.herokuapp.com/

Prepared Data

BIGBASKET PRODUCT | CHINMAY SHANBHAG by Kaggle

The original database did not contain images, so I added a column of data to the database to store images of the products. There are so many items that only the first 20 items have images uploaded, therefore not all items will display images.

Note

⚠️ There is a slight difference between codio and github commits, due to the different settings required for localhost, celery and rabbitmq to run locally and on codio

⚠️ Due to the chromedriver problem with the behave test, the test results may not be displayed on codio. However, locally the behave test works well as follows: Image text

Starting Server

Create .env file in root directory with below contents.

⚠️ DO NOT commit .env file into this repository.

DEBUG=True

Then, start the server with this command.

# install dependencies
pip install -r requirements.txt

# create database
python3 manage.py parse_csv

# run server
python3 manage.py runserver 8000

# run server in Codio
python3 manage.py runserver 0.0.0.0:8000

Running Tests

python3 manage.py test

Running Behave Tests

behave

When Updated models

# create files for migration
python3 manage.py makemigrations

# execute migration
python3 manage.py migrate

For Deployment in Heroku, render

# create requirements.txt
pip list --format=freeze > requirements.txt

For Payment:

rabbitmq-server
	
celery -A bigcart worker -l info

Bank cards used to test payments:

card Number: 4111 1111 1111 1111

CVV: 123

ExpireDate: 12/24

About

License:The Unlicense


Languages

Language:JavaScript 28.4%Language:CSS 27.6%Language:HTML 24.6%Language:Python 19.1%Language:Gherkin 0.3%Language:Shell 0.0%Language:Procfile 0.0%