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-not-another-react-boilerplate

v0.1.8

Published

Developer satisfaction centric complete single page react application with HMR, React-Router, Redux, Redux-Saga, Jest, and minimal backend with Express.

Downloads

5

Readme

Not Another React Boilerplate!?

Too many f***in boilerplates!

Big complaints about React I've heard:

  • Setup suuuuuucks
  • Falling down the JS library rabbit hole (Oh! How about I include Redux and thunk and sass and styled-components and kitchen-sink and...
  • Easy to forget something and totally botch up your production setup
  • Many boilerplates are using outdated libraries and dependencies

NOT ANYMORE!

Introducing Not Another React Boilerplate! - designed to make life easier by installing the basics of what a solid Single Page React Application needs!

NOTE: This boilerplate is meant for those who are already experienced with React and Redux. If you are just starting out and are trying to learn either React or Redux, don't use this boilerplate. Use Create-React-App instead. It's MUCH easier to use this rather than the other 9,000,000 generators out there...

Features and Pretty Things!

  • ReactJS - Wow!
    • View Library by Facebook
  • Redux - Amazing!
    • Forces one way data flow
  • Redux-Saga - Whoa!
    • Library that allows testable asynchronous actions and prevents pesky and embarassing async side effects!
  • React-Router - Yowza!
    • Client-side routing for your single page application!
  • Express - Tell me more!
    • Minimalistic and unopinionated server framework for Node.js
  • Jest - Omg!
    • "Configuration-free" testing platform - now with Snapshot testing :D
  • Webpack 3 - Unbelievable!
    • Bundler and compiler for all your dependencies
  • Emotion - Incredible!
    • Next generation super fast CSS-In-JS Styling

But wait! There's more!

  • Hot Module Replacement - Never hit reload again! (ok, maybe like, once or twice when s*** hits the fan and things aren't working... but seriously guys... HMR is pretty nice :D)
  • Redux Dev tools enabled - Use the fantastic Redux Dev Tools right off the bat!
  • Development and Production Scripts - Worried about deploying your webapp in production mode? Don't worry about it, we did that for you!
  • In-boilerplate-documentation - We put a slew of documentation into the default webapp to show how all the moving parts work for those who know React, but aren't super comfortable with redux and it's middlewares.
  • Built with TDD in mind - Like test driven development? We do too!

All of this, kindly bundled together with the wonderful WTFPL license - that's the "Do What the F*** You Want to Public License - That means it's free!

Principles

  • Avoid #JavascriptFatigue at all costs
  • Create a fun and easy system + architecture to develop on
  • Build modular and testable
  • Front-end first
  • Minimal Backend setup
  • Maximize Front End performance

While there is a backend setup, it has been intentionally left barebone and minimal, only including the utmost standard of items like helmet body-parser and morgan - Backend architecture is something that I am not very experienced in, so I left it bare-bones so that your own rockstart backend guy can take it and run with it.

Installation

Before you start, make sure you've got these things installed:

Install this guy globally

$ npm install -g generator-not-another-react-boilerplate

Create a new directory and cd into it

$ mkdir awesome-app && cd awesome-app

Activate the generator with yo

$ yo not-another-react-boilerplate

Follow the prompts on screen and BAM! Now ya gots a brand new React application! A developer is you!

The libraries are great, but I don't like the organization...

Go ahead and change it. If you need help organizing this in a manner to your liking, feel free :). The documentation generated will help you see how everything is organized so you can move things around as you see fit.

Contributions

I built this boilerplate because I make a ton of React applications and in the consistent pursuit of knowledge, I want to know all the things, and make documentation not just easy to understand, but fun as well. Life's too short to write boring docs, so let's start writing fun docs ;) Like this repo? Star it, spread the word! Find a bug? Open up an issue and I'll take care of it when I have the time :)