Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

amazingrv/react-starter-express

Repository files navigation

react-starter-express Node CI

A simple react starter kit with exposed config and hooks support, running from webpack-dev-server as a custom server (for Node 16 LTS and above).

Supports eslint with recommended lint rules, prettier and other best practices supported OOB

Currently supported config:

  • configuration for eslint, prettier and webpack
  • browserlist support with autoprefixer using postcss
  • @swc/core for transpiling javascript
  • support for Core-JS 3 polyfills
  • webpack asset modules for svg, font and images etc.
  • support for css modules
  • optimized for development with fast startup and HMR
  • efficient and small production builds
  • webpack tree-shaking with lodash and moment lib optimizations
  • code minification using swc-minify, csso for css and html minify
  • ejs for generate custom html render during server start

Building and running on localhost

First install dependencies:

npm install

To run in hot reloading mode using express configured with dev server:

npm start

To create a production build (dist folder) with production express server:

npm run build

Running

Run npm start in dist folder to start running the app

About

Features of react-starter kit but with express, webpack and a custom view engine

Topics

Resources

License

Stars

Watchers

Forks