Giter Site home page Giter Site logo

jiafenggit / imall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from passionzale/imall

0.0 2.0 0.0 5.12 MB

基于Laravel5.2,Vue.js1.0的微信商城(1MB单核基础服务器,浏览请耐心等待图片加载...)

License: MIT License

PHP 7.99% JavaScript 80.16% ApacheConf 0.03% CSS 2.96% Vue 3.00% HTML 5.85%

imall's Introduction

iMall

基于Laravel5.2,Vue.js1.0的微信商城

iMall Backend

iMall Fronted

Laravel Vue Blog

微信接口测试公众号

iMall Qrcode

可以直接注册一个账号进行浏览

不需要配置公众号信息,此功能将移除,替换为配置文件

iMall 功能陆续开发中,浏览后台请勿删除任何数据

项目说明

  1. 后端(API)基于:"laravel/framework": "5.2.*"
  2. 前端(商城)基于:"vue": "^1.0.26"
  3. 商城UI基于:"mint-ui": "^1.0.2"
  4. 后端(CMS)基于:"Inspinia Admin Template"
  5. 微信SDK采用:"overtrue/laravel-wechat": "~3.0"

重要提示

  1. 本项目仅为学习Laravel&Vue&Wechat API
  2. 未对接微信支付(测试接口号无法调起微信支付API)
  3. CMS订单模块发货等功能还未开发

环境要求

  1. PHP≥5.59
  2. composer:1.2.1
  3. node:v6.2.0
  4. npm:3.8.9

PHP 扩展

  1. open_ssl
  2. fileinfo

TODOS

  1. 对接微信支付
  2. CMS订单管理模块
  3. CMS UI 替换为Inspinia

Composer 、NPM配置

#启动composer**镜像服务
composer config -g repo.packagist composer https://packagist.phpcomposer.com
#启动npm淘宝源
npm config set registry https://registry.npm.taobao.org
#如果上一步配置正确这个命令会有字符串response
npm info underscore
#接下来,设置node-sass
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/

安装步骤

安装Composer Package

git clone https://github.com/PassionZale/iMall.git
cd iMall/
git update-index --assume-unchanged config/wechat.php
cp .env.example .env
#在.env中配置好数据库连接后,继续执行以下步骤
composer update
php artisan key:generate
php artisan migrate

安装NPM Package

cd iMall/
npm install
#若出现以下,且NPM未报错
> [email protected] install /usr/share/nginx/html/iMall/node_modules/node-sass
> node scripts/install.js
#执行以下命令
npm install npm install [email protected] /usr/share/nginx/html/iMall/node_modules/node-sass
#编译sass
gulp admin-sass
gulp mall-sass

组件开发

开发阶段,我们需要实时编译*.vue,*.sass等文件,想要npm执行多个进程,可以使用concurrently这个工具

npm install -g concurrently
concurrently "npm run taskA" "npm run taskB"

拿本项目来说,可以这样:

concurrently "webpack --watch" "gulp watchsass"

人生不是接力跑,是马拉松,努力会有回报

加油,年轻没有失败

imall's People

Contributors

lgfiting avatar passionzale avatar wdjwxh avatar

Watchers

 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.