A boilerplate to show how to serve create-react-app with node server for injecting server data dynamically into page and securing API without login authentication.
- If you want to build a lightweight app
- If you want to deploy create-react-app without static server but dynamic one
- If you want to inject server data dynamically into page
- If your app doesn't have login feature (to get something like JWT token) but you want to secure non-GET APIs
- If you need to support SSR (you can try next.js)
yarn dev
Note: Client and server will be started via two servers (webpack and node) in DEV mode.
- Choose
heroku/nodejs
as buildpack - Add following script in your
package.json
Enjoy.