Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including create-nice-app with all npm packages installed. Try it out:

var createNiceApp = require("create-nice-app")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

create-nice-app v1.1.2

React/Express boilerplate generator

doggo



Install (make sure you have the latest yarn version)

yarn create nice-app 

Create-nice-app spins up a very simple little app, great for throwing together quick working ideas or starting new projects from scratch. It is designed to work well out of the box and take care of all tedious boilerplate. It's really easy to swap pieces out so this serves as a really nice, modern, fullstack Javascript boilerplate generator.

What you're getting:

Frontend:

  • React 16
  • SCSS
  • React Router 4

Backend:

  • Express

Testing:

  • Jest 20
  • Enzyme 3

Build:

  • Yarn
  • Webpack 3
  • Babel
  • Eslint
  • Prettier for formatting

Yarn Scripts available:

namewhat it does
lintruns eslint
lintfruns eslint with the --fix flag
testruns both the client and server tests via jest
test:coveragesame as above but passing the --coverage flag to jest
test:clientrun the client or frontend tests
test:serverrun the server or backend tests
presendCoveragemerges the client and server code coverages to one lcov
sendCoverageI don't know how you do code coverage, but however you do it do it here
webpackruns the production webpack bundle
webpack:watchruns the development webpack bundle which has watch enabled
serverruns the server for production via the node command with NODE_ENV set to 'production'
server:watchruns the server for development with nodemon and NODE_ENV set to 'development'
prodruns the build command and starts the production server
devruns all the watchers in parallel for local development

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free