Skip to content

Dailyfresh is a B2C e-commerce website project built with the Django framework. This project is built for the purpose of learning the features of Django. The project mainly includes four important aspects: user, goods, shopping cart and order. The functions of those aspects cover some of the basic needs of an e-commerce website.

Notifications You must be signed in to change notification settings

Ziziaozzz/Full-stack-project-Dailyfresh-website

Repository files navigation

Django_dailyfresh_project

Project introduction

Based on Itheima Django course projects. Dailyfresh is a B2C e-commerce website project built with the Django framework. This project is built for the purpose of learning the features of Django. The project mainly includes four important aspects: user, goods, shopping cart and order. The functions of those aspects cover some of the basic needs of an e-commerce website.

The main tech stacks:

  1. Python, Django
  2. Mysql: store the data of users, goods, and orders
  3. Redis: implement shopping cart's functions, store users' browser history, and work as a message broker for Celery
  4. Celery: send the activation email to a user in an asynchronous way when that user registers
  5. FastDFS & Nginx: store images of the website in a distributed way; convenient to scale the storage; increase the efficiency to get images
  6. Haystack & Whoosh: search framework and search engine; used for the search purposes inside the website

Architecture and functions

Installation and configuration

We need to run FastDFS in Linux. I added an ubuntu using VirtualBox on my laptop and installed the FastDFS & Nginx there. Mysql, Redis, Celery and the main project are running in another win10 computer.

Install python packages

pip install -r requirements.txt

Main configurations

Mysql, Redis and Celery
FastDFS and Nginx
Edit project settings file
Others

Migration and running

py manage.py makemigrations
py manage.py migrate
py manage.py runserver

Project images

Index page

Search

Shopping cart

Admin

Bug fixes

Fix bugs which caused incorrect results in the total and subtotal calculations in the shopping cart page.

About

Dailyfresh is a B2C e-commerce website project built with the Django framework. This project is built for the purpose of learning the features of Django. The project mainly includes four important aspects: user, goods, shopping cart and order. The functions of those aspects cover some of the basic needs of an e-commerce website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published