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

leancloud-vue-boilerplate

v0.2.0

Published

LeanCloud Vue Boilerplate.

Downloads

4

Readme

LeanCloud Vue Boilerplate

This boilerplate contains some awesome new front-end technologies, like hot reloading and ES6.

This project is designed to be opinionated but robust enough to set up a website with common features like client-side rendering/routing, RESTful API, authentication, as well as data storage by using LeanCloud backend service.

For more, check out the full feature list below:

Features

Server:

  1. Node 6.x | Express 4.x
  2. LeanCloud integration (compatible with LeanEngine 1.x)
  3. Webpack (with hot reloading)
  4. express-validation | Joi (powerful request validation)
  5. Ava (asynchronous test runner)
  6. Bunyan for logging (with global variable Logger)
  7. Database seeding example (see folder scripts/seed)

Client:

  1. Vue.js 1.x (with plugins vue-resource and vue-router)
  2. Semantic UI (for user interface)
  3. Babel (transform ES6 for browsers)
  4. SASS support (with autoprefixer)

Editor:

  1. Visual Studio Code configurations
  2. Typings definitions for intellisense
  3. ESLint

Application Structure

.
├── builder           # Build/Start scripts
|
├── client            # Application source code
│   ├── assets        # Static assets
│   ├── components    # Vue.js components
│   ├── extensions    # Vue.js directives or service providers
│   ├── semantic      # Semantic-UI related code
│   ├── UI            # UI components
│   └── main.js       # Application bootstrap
|
├── config            # Project configuration settings
|
├── scripts           # Common scripts
│   └── seed          # Seeding scripts
|
├── server            # Server source code
│   ├── api           # Server API
│   ├── auth          # Authentication middleware
│   ├── common        # LeanEngine cloud functions
│   ├── lib           # Server configuration
│   ├── models        # Data models
│   ├── views         # Server rendered views
│   └── index.js      # Server application entry point
|
├── test              # Unit tests
|
└── typings           # Typings definitions

Installation

Make sure Node.js 6.x is installed and enabled in current shell.

git clone https://github.com/chuyik/LeanCloud-Vue-Boilerplate.git
cd LeanCloud-Vue-Boilerplate
npm install

Using Vue DevTools

Install Vue DevTools chrome extension and it just works.

Commands

# Run Dev (Autoreload)
npm run dev

# Stage Mode (Pre-production Testing)
npm run stage

# Start a Production Server
npm start

# Build Client Code with Webpack
npm run build

# Run Seeding Scripts
npm run seed

# Run Test
npm test

License

BSD license