wdi-sg / react-mvc-heroku-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React boilerplate with ES2015, Express.js, and Webpack

Technologies

  • React (v16)
  • Express.js (v4) as production and development server
  • Webpack 4 (production and development configurations)
  • SCSS support (+ sanitize.css included)
  • ES2015+

Features

  • preconfigured eslint and Prettier code formatter
  • React Hot Loader
  • Linux/MacOS/Windows

Usage

Make sure you have nodemon installed globally

npm install -g nodemon

Installation

git clone https://github.com/wdi-sg/react-express-webpack.git
cd react-express-webpack
npm install


# remove boilerplate git references
rm ./.git

Scripts

# run development mode
npm run dev

# run production mode
npm run build
npm start

# run prettier
npm run prettier

# run lint
npm run lint

# run on a different port
HTTP_PORT=3001 npm run dev

Deploy

Some operating systems do not copy the server files to the build directory.

See the documentation here: https://github.com/calvinmetcalf/copyfiles/blob/master/readme.md

License

MIT License. Free use and change.

About


Languages

Language:JavaScript 95.7%Language:CSS 2.4%Language:HTML 1.9%