Git Product home page Git Product logo

monday-shop's Introduction

WaitMoonMan/monday-shop


Demo 演示地址

http://or2pofbfh.bkt.clouddn.com/github/index_pc.png

Feture

  • 第三方登录 (因为应用审核不通过,只能本人的账户登录)
    • Github
    • QQ
    • 微博
  • 第三方支付
    • 支付宝支付
    • 微信支付
  • 购物车使用 H5 本地存储 + 数据库持久化存储
  • 商品搜索支持拼音首字母 + AJAX 无刷新显示
  • 订阅之后每周推送一封邮件包含最受欢迎,最新,最火卖商品的信息
  • 响应式网站

Installation

  1. 获取源代码
git clone [email protected]:WaitMoonMan/monday-shop.git
  1. 安装依赖扩展包
composer install
  1. 生成配置文件(修改其中的配置选项:数据库的一定要修改)
cp .env.example .env
  1. 使用安装命令(会执行执行数据库迁移,填充,监听队列 !!! 不需要再监听队列,此命令已包含)
php artisan gps:install

Usage

Commands

命令 一句话描述
php artisan gps:install 安装应用程序
php artisan gps:uninstall 卸载网站(清空数据库,缓存,路由)
php artisan gps:cache 执行缓存(缓存配置,路由,类映射)
php artisan gps:clear 清除缓存
php artisan gps:copy 复制项目内置的静态资源
php artisan gps:delete 删除项目及上传的基本静态资源
php artisan queue:work --tries=3 监听队列(邮件发送,图片裁剪 !!!

Packages

扩展包 一句话描述 在本项目中的使用案例
mews/captcha 验证码 登录注册功能使用验证码验证
overtrue/laravel-socialite 第三方登录 用户登录可以使用Github,QQ,新浪微博
spatie/laravel-permission 权限管理包 后台管理员操作权限
lazychaser/laravel-nestedset 无限分类 递归效率很低,快速让你的数据模型支持无限极树状层级结构,并且兼顾效率。
intervention/image 图片处理 是为 Laravel 定制的图片处理工具,加水印
webpatser/laravel-uuid uuid生成 商品添加增加一个uuid,订单号
renatomarinho/laravel-page-speed 压缩页面DOM 打包优化您的网站自动导致35%以上的优化
overtrue/laravel-pinyin 汉语拼音翻译 分类首字母查询

Reference

Errors

  • 监听队列如果长时间没反应,或者一直重复任务
    • 数据库没配置好,导致队列任务表连接不上
    • 邮件配置出错,导致发送邮件一直失败
  • SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
    • 数据库引擎切换到InnoDB

License

MIT

monday-shop's People

Contributors

seth-shi avatar

Watchers

James Cloos avatar 栗枫林 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.