Express.js + React.js boilerplate with minimal configuration. Backend side is built with express-generator and frontend side is built with create-react-app
Both backend and frontend are forced to running on these port:
- Express: 3000
- React: 3001
You can edit manually on express-react/package.json for express and express-react/client/package.json for react
Install express and it's dependencies
$ git clone https://github.com/irxd/express-react.git && cd express-react
$ npm installAnd then install react dependencies
$ cd client
$ yarn installRunning express:
Open express directory: express-react/
$ npm startRunning react:
Open new terminal and go to react directory: express-react/client
$ yarn startOpen http://localhost:3001 in browser, you'll see react with some static data fetched from express