npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-loopback-vue

v2.1.4

Published

loopback+vue+vue-resource,前后端分离模板,vue page分页功能,authenticate 权限控制,accesstoken机制,credentials,CI,docker ,hot reload vue

Downloads

36

Readme

generator-loopback-vue 热更新,热部署 典型前后端分离项目模板

License NPM Version Node Version Build Status Downloads Dependency Status

NPM

通过本源码你可以学习到:

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

Docker镜像 ,在daocloud.io中

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

在线demo:

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

部分截图

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

  • slc deploy http://usr:pwd@localhost:port

  • slpmctl -C http://usr:pwd@localhost:8701 ls

  • slpmctl -C http://usr:pwd@domain:8701 status

  • pm2 start -n weather app.js

  • pm2 start -n app_update_server server.js

LICENSE

MIT

捐赠

您的捐赠,是我持续开源的动力。

支付宝 | 微信 ------|------ |