A simple template project for setting up a React web application using Webpack and served by ExpressJs
License: MIT
- Clone repository
- Run
npm install
- Create and popuplate the environment files
server.env
andapp.env
(see below)
- Run
npm run dev
to serve the app using the Webpack development server - Run
npm start
to serve the app using ExpressJS for production
Both of these files must exist in the root folder (adjacent to package.json
) and all variables must be defined
PORT=3000
TEST_MSG=Hello World!