Skip to content
Starter app for React, Babel, and Webpack on Glitch
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
public
.gitignore
LICENSE
NOTES.md
README.md
package.json
server.js
watch.json
webpack.config.js
yarn.lock

README.md

Starter App for React, Babel, and Webpack on Glitch

A starter app for Glitch that uses React, Babel, and Webpack. This is similar to the starter apps in React Starter Kit, but the major difference is that it can compile ES6-style JavaScript using Babel.

Having access to ES6 features makes it much easier to use popular component libraries like Material-UI (the import syntax is much easier to use than the require() function for certain libraries). Therefore this app includes some examples of using Material-UI components.

The package.json file contains extra scripts to help you develop your app locally, if you so choose. For local development, you do need to install some additional global dependencies, described below.

Prerequisites for local development

yarn global add nodemon npm-run-all
yarn install

Scripts

Build the client source and start the server. This is only used on Glitch, where yarn is not used.

npm start

Run in dev mode, meaning when you change files the server reloads automatically and the client source is recompiled

yarn dev

Build the client source, producing the public/bundle.js file

yarn build

Run the server, which automatically reloads on changes

yarn server
You can’t perform that action at this time.