The
reactingCowboy
This project is solely for fun and learning.
It uses a supervised cowboy plug adapter and creates a very simplistic router.
All API calls are forwarded to the ApiRouter while the ReactRouter uses react-stdio with std_json_io to render react elements through a little nodejs process.
Make sure to run mix deps.get and yarn as well as yarn build before running mix to start the application.
You can run yarn start to have webpack recompile while you change files.
- react-stdio by Michael Jackson
- std_json_io fork by Roman (chvanikoff) You should also read his awesome medium post about refactoring this module
- Overstuffed Gorilla(s) blog post about Rendering React with phoenix