Simple proof-of-concept for a single codebase for a back-end framework and React.
- Run Express generator. You can select any back-end generator of your choice.
- Install package dependencies using npm or Yarn. Check the dependency list on the
package.json
file. - Edit app.js to accommodate React rendering code. This may differ depending on the framework selected on Step 1.
- Create a
.babelrc
file. Refer to the .babelrc file on this repo. - Create a
rollup.config.js
file. Refer to the rollup.config.js file on this repo. - Create a
.env
file. Refer to the .env.example file on this repo to create your local configuration. - Browse the
frontend/
directory for the frontend code.