Giter Site home page Giter Site logo

qingzi-king / koa2-vue2-wechat-enterprise Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaonie084/koa2-vue2-wechat-enterprise

0.0 2.0 0.0 77 KB

前后端分离的企业微信第三方应用种子项目,后端用的koa2,前端用的vue2 方便在多个企业微信中部署同一个版本,前端代码在client目录下 集成了免登服务和jssdk的校验

JavaScript 91.23% HTML 2.04% Vue 6.43% CSS 0.31%

koa2-vue2-wechat-enterprise's Introduction

Build Status

koa2-vue2-wechat-enterprise

前后端分离的企业微信第三方应用种子项目,后端用的koa2,前端用的vue2 方便在多个企业微信中部署同一个版本,前端代码在client目录下 集成了免登服务和jssdk的校验

准备

第三方应用的 corpid, secret, agentid, 通信录的secret, 一个备过案的域名,在企业微信里面配置好,如何配置参见企业微信的文档

后端Run Setup

# 安装依赖
cnpm install

# 修改后端配置文件,将所有需要的全局变量都填里面
config/config.json

# 运行后端开发环境
npm start

# 运行后端第一个生产环境
NODE_ENV=company1_production nodemon bin/www

# 运行后端第二个生产环境
NODE_ENV=company2_production nodemon bin/www

前端Run Setup

# 安装依赖
cnpm install

# 修改后端配置文件,将所有需要的全局变量都填里面
src/src/global.js

# 运行开发环境
npm run dev

# 运行前端第一个生产环境
NODE_ENV=company1_production npm run build

# 运行前端第二个生成环境
NODE_ENV=company2_production npm run build

##todo 通过环境变量来加载assets目录

koa2-vue2-wechat-enterprise's People

Contributors

yaonie084 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.