Coder Social home page Coder Social logo

sinopower / wemall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liangdas/wemall

0.0 2.0 0.0 3.43 MB

基于vue, react, node.js, go开发的微商城(含微信小程序)

License: GNU General Public License v2.0

Go 1.82% JavaScript 92.59% HTML 2.23% CSS 2.87% PHP 0.49%

wemall's Introduction

微商城

项目截图

微信小程序

项目环境搭建

  • 克隆代码
git clone https://github.com/shen100/wemall.git
  • 配置nginx
    wemall/nginx/dev.wemall.com.conf文件拷贝到nginx的虚拟主机目录下

  • 配置hosts
    127.0.0.1 dev.wemall.com

  • 创建数据库
    先创建数据库如wemall,再use wemall,然后导入wemall/sql/wemall.sql

注意: 本地开发模式下,数据库是wemall,用户是root,密码是test1234
可以通过wemall/configuration.json配置文件进行修改

  • 安装node.js第三方模块
    进入wemall/nodejs目录,运行命令
npm install

如果安装失败,或速度慢,可尝试阿里的镜像

npm install --registry=https://registry.npm.taobao.org
  • 启动node.js程序
    进入wemall/nodejs目录,运行命令
npm start

再开一个新的命令行窗口, 运行命令

npm run staticServ
  • 运行go程序
    进入wemall目录,将configuration.dev.json改名为configuration.json, 运行
go run main.go
  • 微信小程序
    进入wemall/weixin目录,将config.dev.js改名为config.js,

技术选型

前端

  • web服务器: nginx
  • 后台渲染: node.js
  • M站框架集: vue, vuex, vue-router
  • M站UI组件库: vux
  • 后台管理框架集: react, redux, react-router-redux
  • 后台管理UI组件库: antd
  • 数据可视化: echarts
  • 富文本编辑器: ueditor
  • 打包工具: webpack
  • 构建工具: gulp

后台

  • web框架: iris
  • 路由: httprouter
  • 持久层框架: gorm
  • 数据库: mysql

go依赖的第三方库

说明
gopkg.in/kataras/iris.v6 iris web框架
github.com/jinzhu/gorm gorm 持久层框架
github.com/satori/go.uuid uuid生成工具

项目结构

目录或文件 说明
docs 文档
config 配置
controller 控制器
model 数据模型
utils 实用工具
nginx nginx配置
nodejs 前端项目目录
sql sql文件目录
weixin 微信小程序项目目录
configuration.dev.json 项目配置文件
main.go go主程序入口

最后

求star,star就是继续下去的动力

License

GPL
Copyright (c) 2013-present, shen100

wemall's People

Contributors

shen100 avatar wanggz1992 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.