Code Monkey home page Code Monkey logo

babel-node-express-react-sass-webpack-livereload-boilerplate's Introduction

Boilerplate: Babel - Node - Express - React - SASS - live reload (server/client)

I was lightly frustrated about finding a clean workflow, which supported Node, ES6, Express, React, SASS and live reload on both server and client side.
The webpack-dev-server uses a proxy to the node.js server.
This boilerplate does nothing more than it's title says. See 'package.json'.
You are free to add any dependency.
Renders 'Hello World!' and a framecounter with React, served from a node.js server with express.

If you think something is missing, let me know!

Workflow

Server:

  • Node.js
  • Express

Client:

  • React
  • SASS

Requirements

node v5.0+: npm i n -g && sudo n stable
nodemon: npm i nodemon -g
webpack: npm i webpack -g

If you get permission errors, try again with sudo

Installation

  1. git clone https://github.com/mojibaked/babel-node-express-react-sass-webpack-livereload-boilerplate.git
  2. mv babel-node-express-react-sass-webpack-livereload-boilerplate your-project-name
  3. cd your-project-name
  4. npm install

Usage

Development

npm run dev

Visit http://localhost:3001 in your browser

Server code is watched by nodemon, auto restarts on change.
Client code is watched by webpack-dev-server, auto refreshes in browser on change.

Production

npm run production

Visit http://localhost:3000 in your browser.

You should probably add more code for production use.

License

MIT

babel-node-express-react-sass-webpack-livereload-boilerplate's People

Contributors

woudsma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.