This is the base template for creating a Simple React app with express server by extending Create React App webpack configurations.
This is the base template for creating Simple React app with express server by extending Create React App webpack configurations.
If you don't specify a template (for example, --template with-express
), Simple React app will be created by default.
For more information, please refer to:
npx create-react-app <your-app-name> --template with-express
Don't do yanr start. Instead, refer to the following commands.
Navigate to your-project
by cd your-project
and run the following commands:
Run Server
- npm run server or yarn run server
Run Client
- npm run client or yarn run client
Run Server with Client
- npm run server-with-client or yarn run server-with-client
cd frontend
command and continue your development as you would do for your traditional frontend app.cd backend
command and continue your development as you would do for your traditional backend app.backend/bin/
, open www and change port to your desirable port at line 15. Make sure to change your proxy object in your frontend package.json.