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

@polesskiy/cli-mern-boilerplate

v0.2.9

Published

[![Build Status](https://travis-ci.org/polesskiy-dev/mern-boilerplate.svg?branch=master)](https://travis-ci.org/polesskiy-dev/mern-boilerplate)

Downloads

28

Readme

cli-mern-boilerplate

Build Status

This is a MERN scaffolding cli boilerplate app(MongoDB, Express, React-Redux and Node.js) based on Express app skeleton. Helps you to quick start MERN project with deploy scripts, tests and code quality control.

Quickstart

$ sudo npm install @polesskiy/cli-mern-boilerplate -g
$ cli-mern-boilerplate init --name <name of yor project>
$ cd <name of yor project>
$ npm install
$ npm run start:dev
$ start localhost:3000

CLI commands

#see help
$ cli-mern-boilerplate -h --help

#init your project in the current directory
$ cli-mern-boilerplate init --name <name of yor project>

Available result app commands

1. npm start - starts server by pm2 (for production)    
2. npm stop - stop server by pm2 (for production)   
3. npm run logs - see pm2 logs (for production)
4. npm run start:dev - build client and run server with HMR    
5. npm run start:server - starts server    
6. npm run build:client - build client, pack js and css to separate files to public/bundle
7. npm run build:client:production - same as build:client but minifies result
8. npm run test:client - test client by karma runner
9. npm run test:server - test server by mocha
10. npm run docs:client - generate client code jsdoc
11. npm run docs:server - generate server code jsdoc
12. npm test - runs server and client test

Stack

| Server | Client | Test | Build | Code quality | |---------- |--------------- |----------- |------------------- |---------------------- | | nodejs | react | mocha | docker | eslint | | express | redux | karma | pm2 | editorconfig | | mongodb | redux-saga | chai | babel | babel-preset-airbnb | | mongoose | redux-actions | enzyme | travis | eslint-config-airbnb | | winston | router | supertest | webpack | | | | immutable | phantomjs | hmr | | | | less | | ExtractTextPlugin | | | | | | UglifyJsPlugin | |

Add code style to Webstorm

https://www.jetbrains.com/help/webstorm/2016.2/copying-code-style-settings.html

Docker reference

#build all by Dockerfile instructions image named as "username/appname"
$ docker build -t username/appname .

#run on 3000 port to internal 3000 port with name "appname"     
$ docker run -name appname -p 8080:3000 username/appname

#stop docker process
$ docker stop appname

#save image to tarball
$ docker save username/appname:my_latest > appname.tar.gz

#load image
$ docker load < appname.tar.gz