All Projects → alanbsmith → React Node Example

alanbsmith / React Node Example

a minimalist starter repo for React and Node to deploy to heroku

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Node Example

Webpack2 Express Heroku Starter
Starter app using Webpack 2, Express, setup to deploy to Heroku.
Stars: ✭ 12 (-93.91%)
Mutual labels:  webpack, heroku
Js Stack From Scratch
🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
Stars: ✭ 18,814 (+9450.25%)
Mutual labels:  webpack, heroku
Great Big Example Application
A full-stack example app built with JHipster, Spring Boot, Kotlin, Angular 4, ngrx, and Webpack
Stars: ✭ 899 (+356.35%)
Mutual labels:  webpack, heroku
Typescript Boilerplate
Start writing stuff in TypeScript without bothered by configurations
Stars: ✭ 35 (-82.23%)
Mutual labels:  webpack, heroku
Aspnetcoredemoapp
ASP.NET Core demo app with webpack bundle
Stars: ✭ 78 (-60.41%)
Mutual labels:  webpack, heroku
Spring Boot Vuejs
Example project showing how to build a Spring Boot App providing a GUI with Vue.js
Stars: ✭ 1,818 (+822.84%)
Mutual labels:  webpack, heroku
Reactly Starter Kit
Deployable React + Webpack 2 starter kit
Stars: ✭ 122 (-38.07%)
Mutual labels:  webpack, heroku
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (-20.81%)
Mutual labels:  webpack, heroku
React Redux Webpack Starter
Learning react
Stars: ✭ 189 (-4.06%)
Mutual labels:  webpack
Docker Django Webpack Skeleton
Django Skeleton W/ Docker Dev & Production W/ Webpack 2 W/ BabelJS W/ Sass W/ PostgreSQL
Stars: ✭ 191 (-3.05%)
Mutual labels:  webpack
Livetv mining
直播网站数据采集
Stars: ✭ 188 (-4.57%)
Mutual labels:  webpack
Quickshare
Quick and simple file sharing between different devices.
Stars: ✭ 190 (-3.55%)
Mutual labels:  webpack
Vue Cnode
🚀 基于vue3 function-based 构建cnode社区
Stars: ✭ 192 (-2.54%)
Mutual labels:  webpack
Vue Plugin Template
🚀 Solid foundation to start a Vue plugin with the best developer experience and a focus on performance
Stars: ✭ 189 (-4.06%)
Mutual labels:  webpack
Mullet
Mullet Stack: Facebook in the front. Walmart in the back. (React, Hapijs, Node)
Stars: ✭ 194 (-1.52%)
Mutual labels:  webpack
Graphql Engine Heroku
Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.
Stars: ✭ 188 (-4.57%)
Mutual labels:  heroku
Phaser Project Template
🕹️ Phaser 3 - Starter Template with TypeScript and webpack.
Stars: ✭ 186 (-5.58%)
Mutual labels:  webpack
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+1127.92%)
Mutual labels:  webpack
Angular Router Loader
A Webpack loader that enables string-based module loading with the Angular Router
Stars: ✭ 194 (-1.52%)
Mutual labels:  webpack
Tv
全球直播流聚合
Stars: ✭ 192 (-2.54%)
Mutual labels:  webpack

React + Node Starter

for Heroku deployment

OVERVIEW

This is a simple starter to get you up and running for React projects. This is intended to provide:

  • a lightweight Webpack config (for development and production)
  • some helpful tooling for development workflow
  • a similar setup to what you'll see in the wild
  • Heroku-ready deployment setup

UP & RUNNING

Install dependencies:

$ npm install

or

$ yarn

Fire up a development server:

$ yarn dev

Once the server is running, you can visit http://localhost:8080/

Linting

This assumes you have eslint and eslint-watch installed. If you don't, run the following:

$ npm i -g eslint eslint-watch

or if you need permissions:

$ sudo npm i -g eslint eslint-watch

To run the linter once:

$ yarn lint

To run the watch task:

$ yarn lint:watch

Testing

An initial test suite has been setup with two tests (one passing and one intentionally failing). We're using Jest and Enzyme for our test setup. The basic test setup lives in ./__tests__. The main configuration for Jest lives at the bottom of package.json. I've also added a few handy scripts, which I've listed below. Jest also gives us a test coverage tool for free, so I've added that too. The setup is at the bottom of package.json. Everything is set to 90% coverage, but your welcome to update that to whatever you'd like.

To run the tests once:

$ yarn test

To run the watch script (for only relevant test files)

$ yarn test:watch

To run the watch script (for all test files)

$ yarn test:watchAll

To view the coverage report:

$ yarn test:coverage:report

Review

If you'd like to run the linter and tests at once (this is a nice check before pushing to Github or deploys), you can run:

$ yarn review

Production Build

To build your production assets and run the server:

$ yarn start

CHANGELOG

v2.0.0 This app has been updated to use React v.16.0.0! 🎉

Major Changes:

  • Updates React and ReactDOM to v16
  • Replaces Mocha with Jest
  • Adds babel-polyfill and updates Babel config
  • Colocates tests with components

Minor Changes:

  • Updates all other dependencies to latest
  • Allows absolute import paths
  • Adds new test scripts
  • Adds test coverage

v1.1.0 This app has been updated to use React v15.6 and Webpack 3.5! 🎉

Major Changes:

  • Updates React and ReactDOM to v15.6
  • Updates Webpack to v3.5

Minor Changes:

  • Updates all other dependencies to latest
  • Updates App.js syntax
  • Updates eslint rules
  • Updates server.js
  • Updates README

v1.0.0 This app has been updated to use React v15.5 and Webpack 2.3! 🎉

Major Changes:

  • Updates React and ReactDOM to v15.5
  • Updates Webpack to v2.3
  • Enables hot-reloading for local development
  • Adds initial test suite with Enzyme, Expect, and Mocha

Minor Changes:

  • Updates all other dependencies to latest
  • Updates eslint rules
  • Updates npm scripts
  • Refactors server.js
  • Updates README

v.0.2.0 This app has been updated to use React v15 and Babel v6! I have also updated the file structure to reflect naming conventions you'll most likely see in other applications. If you'd like to go back to v.0.0.1 (which should've been named 0.1.0), you can find go back to this commit.

DEPLOYING TO HEROKU

This app is set up for deployment to Heroku!

This assumes you have already have a Heroku account and have the Heroku CLI installed

$ heroku login
$ heroku create -a name-of-your-app
$ git push heroku master
$ heroku open

Heroku will follow the build command in your package.json and compile assets with webpack.prod.config.js. It runs the Express web server in server.js.

If you're unfamiliar with Heroku deployment (or just need a refresher), they have a really great walkthrough here.

REDUX STARTER

If you're looking for a similar, minimalistic Redux starter, I would recommend Marc Garreau's here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].