Create Min Express React
Create a minimal express.js server together with the simplicity of create-react-app.
Quick Overview
Install the cli:
npm install -g create-min-express-react
To run the dev server:
create-min-express-react my-appcd my-appnpm installnpm run dev
The dev command utilizes the concurrently package to run the server via nodemon and uses react-scripts to run the react dev server.
To run the application:
create-min-express-react my-appcd my-appnpm installnpm buildnpm start
npm build will execute the react-scripts build command that comes with CRA.
To install dependencies for the server:
Navigate to your project directory and run
npm install <package name>
To install depecndencies for the client:
Navigate to your project directory and run
cd clientnpm install <package name>
or
npm install <package name> --prefix client