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-nodestack

v0.0.0

Published

Yeoman generator for MEBN stack(Mongo+Express+Backbone+Node). Also Passport included.

Downloads

8

Readme

generator-nodestack Build Status

Yeoman generator for MEBN(MongoDB+Express+Backbone+Node) stack. Also setup Passport authentication strategies. Best suited for hackathons.

Getting Started

  • Make sure you have yo installed on the latest version.
npm install -g yo
  • To install generator-nodestack from npm, run:
npm install -g generator-nodestack
  • Finally, initiate the generator:
yo nodestack

What do you get?

Scaffolds out a complete project directory structure for you:

.
├── app
│   ├── config
│   └── models
│   └── routes
│   └── src
├── app.js
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .jshintrc
├── .travis.yml
├── bower.json
├── Gruntfile.js
├── karma.conf.js
├── package.json
├── public
│   ├── images
│   └── scripts
│       ├── main.js
│       └── collections
│       └── models
│       └── views
│   └── styles
│       ├── less
│   └── templates
└── test
│   ├── spec
│       ├── test.js
└── views
│   ├── helpers
│   └── layouts
│   └── partials

Here is how the directory structure has been laid out:

  • The public directory is where all of our front-end code will reside and will be served from. Basically anything inside the public or views directories is visible from a browser, everything else is not.
  • The core server file that will house the bulk of the node.js code (at least the boot-up code) will reside in a file called app.js.
  • The app directory is where all of our back-end code will reside. These include databases, configurations, routes etc.

It also gives you the option of installing BootStrap, Browserify and Font-Awesome.

Also provided is the option of setting up authentication strategies using Passport.

You have the flexibility of adding local, google, facebook, twitter, linkedin and github strategies.

Deploying to Heroku

During the scaffold you are able to create Procfile and .env files on your target project. After that follow the steps below.

  • Use the command grunt to generate the optimized files for your application.
  • Set the environment variable NODE_ENV to production before pushing your modifications to Heroku.

License

MIT