/backend-react-src-poc

Simple proof-of-concept for a single codebase for a back-end framework and React.

Primary LanguageJavaScript

express-react-csr-poc

Simple proof-of-concept for a single codebase for a back-end framework and React.

Steps to Recreate

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