A very simple realtime review+rating app powered by Rails and React/jQuery.
Demo:
- https://pocket-stars-mvp.herokuapp.com/ (MVP, jQuery)
- https://pocket-stars-v2.herokuapp.com/ (realtime, half-star support, React)
See the ADRs folder for important architectural notes.
$ cd pocket-stars # go to project root
$ bundle install
$ rails webpacker:install
You now need to setup a database. This app uses MySQL. You can use the docker-compose file in _dev
:
$ cd pocket-stars # go to project root
$ cd _dev
$ docker-compose up
For maintenance using a UI, you can open http://localhost:8888/ and use the credentials: server=db
, user=root
and password=pass
.
$ cd pocket-stars # go to project root
$ rake db:create
$ rake db:migrate
$ cd pocket-stars # go to project root
$ rails server
App should now be accessible on http://127.0.0.1:3000/.
$ cd pocket-stars # go to project root
$ rake db:create RAILS_ENV=test # if you haven't already
$ rake db:migrate # if you haven't already
$ rails test # all but system tests
$ rails test:system # system tests
$ rails test:all # ALL tests
Troubleshooting: if you tests fail randomly due to parallel execution (e.g. file locking, streams closing),
try disabling it at test_helper.rb
.