Status: isomorphic RiotJS example is done, testing Redux with RiotJS(still in progress)
I did this in RiotJS on purpose to inspire others. JS code is high quality.
I didn't use a bundler like webpack, because I like good DSLs, I know node + GulpJs and I'm not a hipster.
iz namespace is used. For example: <iz-rating-list />
All the css is component specific, bootstrap has been used to its full power.
-
npm install gulp riot sequelize-cli browserify nodemon pm2 -g
-
npm install
Create the models:
-
createdb riotjs_example
-
sequelize db:migrate
gulp watch
or gulp compile
(for once)
npm run server
FOR UNIT TESTS:
createdb riotjs_example_test
sequelize db:migrate --env=test
TODO:
- run migration on deployment
- test that store change should update selector
some other things I might do in future:
- copy sharing = backend / frontend / multi-lang | write the logic for ruby
- form generation from js
- real-time comm. (socket.io)
- multi-auth (fb/twitter etc) - OAuth
- styleguide
- rake routes and schema.rb functionality to the backend
- api-serializer (maybe) + json+hal
- backend caching with redis smt like fresh_when