Simple App
This is a very simple example of a website that uses the Aviator front-end router, and ReactJS view system.
Tools
- NPM - gets all of the build tools
- grunt - compiles all vendored and local assets for use by the website
- bower - pulls down assets (Aviator, React, ...)
- bundler - pulls down Ruby plugins (gems)
- rack - Ruby webserver
How to get started
Things to install
- Ruby - Recommended install through rbenv and
rbenv install(rbenv and ruby-build for rbenv) - Node - Recommended install through package manager (pacman, brew, apt-get, yum)
Building environment
-
Installing grunt and bower
sudo npm install -g grunt-cli bower -
Installing bundler
-
Installing Ruby gems
-
Installing node modules
-
Getting assets
-
Compiling assets
-
Enabling rackup (only needed if using rbenv once)
Running application
In this directory, run:
Now: visit http://localhost:9292/
Continuing development
If you want to rebuild the JS/JSX files, run grunt again. To do this automatically while writing and saving files, run grunt watch.
If you add new gems to your Gemfile, run bundle install again to include them.
Adding routes is as simple as extending the list in config.ru.