1.0.3 • Published 6 years ago
create-min-express-react v1.0.3
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-reactTo run the dev server:
create-min-express-react my-app
cd my-app
npm install
npm run devThe 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-app
cd my-app
npm install
npm build
npm startnpm 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 client
npm install <package name>or
npm install <package name> --prefix client