All Projects → Ylisen → Dailyfresh B2c

Ylisen / Dailyfresh B2c

dailyfresh mall based on B2C model

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Dailyfresh B2c

Dailyfresh
Django-天天生鲜电商学习项目
Stars: ✭ 127 (-28.25%)
Mutual labels:  redis, fastdfs, django, celery
Banking System
A banking System Created Using Django Python Web Framework
Stars: ✭ 105 (-40.68%)
Mutual labels:  redis, django, celery
Docker Django Example
A production ready example Django app that's using Docker and Docker Compose.
Stars: ✭ 86 (-51.41%)
Mutual labels:  redis, django, celery
Django School Management
Deployment Ready Developer to Developer Full-stack School Management System with payments, e-admission, result management, academic functionalities, and much more implemented in a simple way.
Stars: ✭ 151 (-14.69%)
Mutual labels:  redis, django, celery
Website
django 开发的BBS博客项目, 此项目包含多用户注册,话题模块,发布文章,文章评论,课程、社区BBS以及消息提示,关注,采用邮箱注册,激活验证登录,以及QQ注册登录,招募作者发布教程在后台管理系统发布, pc采用模板渲染,cms采用vue drf前后分离,登录采用JWT认证登录、移动端采用react开发,
Stars: ✭ 217 (+22.6%)
Mutual labels:  redis, django, celery
Chain
链喵 CMDB 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 240 (+35.59%)
Mutual labels:  redis, django, celery
Ecommerce website development
本项目基于Django1.8.2等来开发一个电商平台,可实现注册、登录、浏览、购买、支付等全部常用功能。
Stars: ✭ 246 (+38.98%)
Mutual labels:  redis, django, celery
Docker Django
A complete docker package for deploying django which is easy to understand and deploy anywhere.
Stars: ✭ 378 (+113.56%)
Mutual labels:  redis, django, celery
Playlistor
🎶Apple Music ↔️ Spotify playlist convertor.
Stars: ✭ 95 (-46.33%)
Mutual labels:  redis, django, celery
Django Celery
Old Celery integration project for Django
Stars: ✭ 1,439 (+712.99%)
Mutual labels:  django, celery
Django Bruteforce Protection
Bruteforce protection for Django projects based on Redis. Simple, powerful, extendable.
Stars: ✭ 110 (-37.85%)
Mutual labels:  redis, django
Django Structlog
Structured Logging for Django
Stars: ✭ 127 (-28.25%)
Mutual labels:  django, celery
Superman
Superman是什么:构建Java 高级开发技术的知识体系,从基础不断打怪升级成为超人之路(更新中.......)
Stars: ✭ 106 (-40.11%)
Mutual labels:  redis, fastdfs
Spring Examples
Spring Examples
Stars: ✭ 172 (-2.82%)
Mutual labels:  redis, fastdfs
Spring Boot 2.x Examples
Spring Boot 2.x code examples
Stars: ✭ 104 (-41.24%)
Mutual labels:  redis, fastdfs
Django Rq
A simple app that provides django integration for RQ (Redis Queue)
Stars: ✭ 1,361 (+668.93%)
Mutual labels:  redis, django
E3 Springboot
SpringBoot+Docker重构宜立方商城
Stars: ✭ 139 (-21.47%)
Mutual labels:  redis, fastdfs
Django Celery Docker Example
Example Docker setup for a Django app behind an Nginx proxy with Celery workers
Stars: ✭ 149 (-15.82%)
Mutual labels:  django, celery
Visual Chatbot
☁️ 👀 💬 Visual Chatbot
Stars: ✭ 161 (-9.04%)
Mutual labels:  redis, django
Fastapi Celery
Minimal example utilizing fastapi and celery with RabbitMQ for task queue, Redis for celery backend and flower for monitoring the celery tasks.
Stars: ✭ 154 (-12.99%)
Mutual labels:  redis, celery

dailyfresh-B2C 分布式

dailyfresh mall based on B2C model
基于B2C的天天生鲜商城

B2C(Business-to-Customer), 企业对个人的一种商业模式,简称"商对客". 商对客是电子商务的一种模式,这种电子商务一般以网络零售业为主,主要借助于互联网开展在线销售活动。 B2C即企业通过互联网为消费者提供一个新型的购物环境——网上商店,消费者通过网络在网上购物、网上支付等消费行为。

为消费者提供一个新型的购物环境:
从0开始,立项、构建、开发到部署, 搭建一个天天生鲜商场

技术栈

  • 语言:Python3.* (Django)
  • 数据库: MySql、 redis
  • 任务队列(异步处理): celery(django-celery)
  • 分布式文件存储: FastDFS
  • 搜索引擎(商品检索): haystack(django-haystack)、whoosh、二次开发
  • web服务器配置: Nginx+ uwsgi
  • 开发环境: PyCharm、Linux、vim

技术架构

  • 开发架构
    采用BS结构, 即Browser/Server(浏览器/服务器)结构,构建一个web的网站商城系统, 其架构逻辑:
    frame

  • 部署架构
    Nginx+uwsgi
    deploy

主体模块

主要分为四个大模块:

数据库表

DB

  • SPU是商品信息聚合的最小单位,是一组可复用、易检索的标准化信息的集合,该集合描述了一个产品的特性。通俗点讲,属性值、特性相同的商品就可以称为一个SPU。
    例如,iphone4就是一个SPU,N97也是一个SPU,这个与商家无关,与颜色、款式、套餐也无关。
  • SKU即库存进出计量的单位, 可以是以件、盒、托盘等为单位,在服装、鞋类商品中使用最多最普遍。
    例如纺织品中一个SKU通常表示:规格、颜色、款式。

功能模块展示

点击查看--多图预警

功能与性能优化

  1. 用户注册发激活邮件时,可能发送邮件所需的时间较长,客户端会需要等待,用户体验不好。

改进: 把耗时的任务放到后台异步执行,此处使用celery任务队列, 其中使用redis作中间件。

  1. redis存储用户历史浏览记录, 采用list数据结构: History_用户id: [skuid1,skuid2,skuid3]
  2. 使用redis存储用户购物车商品信息,采用hash数据结构: cart_userid: {'sku_id1': num, 'sku_id2': num}
  3. 采用分布式文件系统, 把商品图片等信息存储在FastDFS系统中, Nginx+FastDFS配合, 减少服务器的压力。
  4. 页面静态化: 首页、商品列表页、商品详情页等用户共同的页面, 把页面静态化,以减少对数据库的操作。当后台数据更改时自动重新生成静态页。
  5. 页面数据缓存,把页面使用的数据存放在缓存中,当再次使用这些数据时,先从缓存中获取,如获取不到,再去查询数据库,减少数据库的查询次数。
  6. 订单并发

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].