Coder Social home page Coder Social logo

qlfy17 / generator-loopback-vue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qxl1231/generator-loopback-vue

0.0 1.0 0.0 1.52 MB

app版本管理,(热更新)前后端分离,vue page分页功能,authenticate 权限控制,accesstoken机制,credentials,CI,docker

Shell 0.01% Vue 1.61% JavaScript 98.33% HTML 0.06%

generator-loopback-vue's Introduction

generator-loopback-vue 热更新,热部署 前后端分离实践

License NPM Version Node Version Build Status Downloads

NPM

首先,为什么需要前后端分离?强烈推荐看下

http://2014.jsconf.cn/slides/herman-taobaoweb

以下是本项目的feature:(loopback**讨论组-群号:575600225)

  • Strongloop是是如何通过一行命令和代码实现restful API接口,包括CRUD等14个接口
  • model是如何定义的,以及model-relation 定义,以及ACL接口权限控制等
  • CI持续集成的配置,Docker容器,docker部署文件
  • 如何登录鉴权,以及接口权限控制
  • vue1.0/2.0 是如何玩?以及vue-resouce的使用,vue-router,webpack,babel等
  • loopback自带的authenticate 权限控制,accesstoken机制,credentials
  • strong-pm 部署命令,以及slc主要命令
  • 如何把项目部署在daocloud中,以及集成daovoice服务
  • 增加了个vue-pagenav 组件的使用 实现分页功能

Docker镜像

最新版本: latest 镜像地址: daocloud.io/qxl1231/lb-vue2

在线demo:(使用第三方daocloud平台(免费版),每天手动启动,如遇服务挂了,请见谅^.^)

http://loopback-vue.daoapp.io/
帐号:test,密码:testpwd

http://loopback-vue.daoapp.io/explorer

部分截图

image

集成了daovoice玩玩哈哈~~~炫酷!客服系统很赞,还有统计图标等,注意这不是广告!!确实不错哦 image

image

The project is generated by LoopBack.+vue.js.

如何启动:(国内用cnpm(先运行npm i cnpm -g),国外用npm)

      1. npm i   
      2. 修改datasources.json 中的数据库配置比如:localhost:27017
      3. node server/bin/create-admin.js 添加管理员帐号,密码
      3.npm run build:js & node .(cold reload) --hot reload npm run watch:js

遇到问题1:loopback+vue 不能运行

1.npm install 2.npm run build:js 3.node .

问题2:热部署

To use hot reload, please try this command: npm run watch:js & node .

热启动:

npm run watch:js & node .

问题3:If you have error, try this:

  npm install
  vueify-insert-css vue-hot-reload-api
  babel-core babel-preset-es2015
  babel-plugin-transform-runtime babel-runtime@5
  --save-dev 

Hot reloading detail:

https://github.com/vuejs/vueify

其他help===>loopback 常用命令行:

  • slc loopback 初始化项目
  • slc loopback:datasource
  • slc loopback:model
  • slc loopback:relation
  • slc loopback boot-script

others:deploy and status

  • pm2 start -n weather app.js
  • pm2 start -n app_update_server server.js

LICENSE

MIT

捐赠

No       ID           github
1 JLF https://github.com/cnJLF
2     萧大大 https://github.com/freemember007
3     you      
4 are next       

❤❤❤❤感谢我的兄弟们大力支持❤❤❤❤❤❤:

支付宝 | 微信

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.