Work-in-progress of a Universal React-powered Spotify API application with an experimental UI. Open-sourced early to illustrate how to enable hot reloading in an existing React app — read the article.
As such, the app as a whole is rough, and the past README is more musing than documentation. Feel free to peruse.
Developmemt: npm run dev
- starts server with hot reloading
Production:
npm start
- compiles assets and runs server ornpm run serve
- just runs server
- app.js is terrible but handles the lower-level piping
- routes.js defines the routes, which app.js will call from:
- controllers.js defines the controllers. MUST respond with something that
resolves to a
{ response, code }
-shaped object (either object itself or a promise which resolves to the value) - experiments.js are experiments fired by the
experiment
controller
We've adapted much of the bootstrapping code from the wonderful simple-redux-boilerplate repo.
There's a bit of swearing in the places that need improvement. Watch out if you're not a fan of it.