Getting Started
- Install node
- Install gulp dependencies
(cd frontend && npm install)
- Install rvm
- Return to root directory
cd ..
- Install ruby 2.1.2
rvm install 2.1.2
- Install bundler
gem install bundler
- Run
bundle
in this directory - Start the server with
foreman start
Development Details
When you run foreman start
the server is started and a gulp task is also started. This allows you to edit the files in the frontend directory and see your changes in the website.
The gulp task will compile your sass, image, etc. changes and move them to the public folder. The public folder is auto-generated and should not be modified. Any code you place manually in the public folder will be overwritten.
The app has live-reload enabled so when you make a change to one of the files it is watching, the browser will refresh for you automatically.
If you would like to run the app in production mode, you can do so by running:
foreman start -f Procfile.prod
View in your browser on port 5000.