A basic starting point for building universal web apps with ReasonReact.
Far from refined. Used as a basis to learn ReasonML and POC for server side rendering and code-spliting with ReasonReact
Build automation tools based heavily off of react-starter-kit
- ReasonReact
- Webpack
- SSR - Server side rendering
- React Helmet
- Code Splitting - Reason Loadable
- Reason Apollo (SSR not working)
- PWA - Workbox
- Install dependencies: run
yarn
in project root thencd server
and runyarn
- For frontend dev server: run
yarn start
ornpm start
, from project root. The app should be running at: http://localhost:8080. - For graphql server: in seperate terminal tab/window
cd server
and runyarn bsb
ornpm run bsb
followed byyarn start
ornpm start
, the server should be running at: http://localhost:4000. - To build frontend run:
yarn build
ornpm run build
from project root. Runyarn start
ornpm start
to start app.
- Add offline capabilities (service workers) Workbox