RealWorld spec and API.ReasonReact (ReasonML) codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the
This codebase was created to demonstrate a fully fledged fullstack application built with ReasonReact (ReasonML) including CRUD operations, authentication, routing, pagination, and more.
We've gone to great lengths to adhere to the ReasonReact (ReasonML) community styleguides & best practices.
For more information on how to this works with other frontends/backends, head over to the RealWorld repo.
How it works
Basically its just like React single-page-application but written in ReasonML with ReasonReact.
- App bootstraped with Create React App
- Along with BuckleScript
- Routing - ReasonReact's Router
- AJAX - fetch with
- Unit test - jest with
- Form & Validation -
- Type for asynchorous data -
- JSON decode / encode -
You can view a live demo over at https://reason-react-realworld-example-app.surge.sh/
To get the frontend running locally:
git clone https://github.com/jihchi/reason-react-realworld-example-app.git cd reason-react-realworld-example-app yarn install # or npm install if you're using npm yarn start
Then open http://localhost:3000 to see your app.
When you’re ready to deploy to production, create a minified bundle with
yarn build (or
npm run build if you're using npm).