Reflow is a project that allows you to upload and update contents to display on remote clients with the ability to change them in real time. Project uses frest template as a front-end.
To run the project you'll need ruby version 2.6.5p, postgresql 12.1, nodejs 10.16.0 and Yarn 1.21.0 to be installed. It may work on older versions but it wasn't tested.
ImageMagick6 and latest GhostScript are also required. Make sure to edit /etc/ImageMagick-6/policy.xml as root to allow ImageMagick to perform PDF conversion:
...
<policymap>
...
<policy domain="module" rights="read|write" pattern="{PS,PDF,XPS}" />
<!-- <policy domain="delegate" rights="none" pattern="gs" /> -->
</policymap>
To setup a project you need to run following commands:
git clone https://github.com/vikdotdev/remote-flow.git
cd remote-flow
bundle install
rails db:migrate
rails s
Running server should appear at localhost:3000.
To run tests use rspec command.
Create additional database(s):
rake parallel:create
Copy development schema (repeat after migrations):
rake parallel:prepare
Setup environment from scratch (create db and loads schema, useful for CI):
rake parallel:setup
Run
rake parallel:spec # RSpec