- Seeds client from client uid
- Seeds default website for each location
- Gardens provide components that make up websites and web pages
- Page builder allows for customization of web pages
- Websites compile and deploy to Heroku
- Read's configurator's feed and updates sibling applications
-
Install all the required gems.
$ bundle
-
Customize client ENV variable or don't. Format is shown.
$ export G5_CLIENT_UID=http://g5-hub.herokuapp.com/clients/:client-urn
Default is
spec/support/client.html
and is set inconfig/initializers/env.rb
.ProTip™: The client uid will be used to seed the database so it must to point to an html file that uses microformats to mark up a client and their locations.
-
Set up your database.
$ cp config/database.example.yml config/database.yml $ rake db:setup
-
Customize garden ENV variables or don't. Defaults are shown.
$ export LAYOUT_GARDEN_URL=https://g5-layout-garden.herokuapp.com $ export THEME_GARDEN_URL=https://g5-theme-garden.herokuapp.com $ export WIDGET_GARDEN_URL=https://g5-widget-garden.herokuapp.com
Defaults are set in
config/initializers/env.rb
. -
Run the specs.
$ rake db:test:prepare $ rspec
-
Start the application.
$ rails s
-
Set ENV variables. See
.env
.
- if you have issues connecting to S3 (SocketError: getaddrinfo: nodename nor servname provided, or not known) make sure your region is correct
-
Install redis and start it.
-
Start the job queue.
$ rake jobs:work
Most CSS will go inside the modules folder. A module is simply a reusable chunk of CSS. To create a new module do the following:
- Create a new file inside the modules folder. It should start with an
underscore and contain the module name. Example:
_panel.css.scss
- The module name is the base class, which contains the basic styles for the
module. Example:
.panel
- If there are multiple words in the base class, use dashes. Example:
.my-panel
- Any component, or part, of the module is a sub-module. The class should be
the module name, a dash, and the sub-module. Example:
.panel-title
,.panel-footer
- For any alternate styles of the module the class should be module name, two
dashes, and the alternate style name. Example:
.panel--b
,.panel--large
app/views/layouts/web_template.html.erb
is the layout fileapp/views/web_templates/show.html.erb
is used to render each pageapp/assets/stylesheets/web_template.scss
is for preview mode onlyapp/assets/javascripts/web_template.js.coffee
is for preview mode onlyapp/views/web_templates/stylesheets.scss
is for preview & deployed modepublic/javascripts/
if for preview & deployed mode
- Jessica Lynn Suttles / @jlsuttles
- Bookis Smuin / @bookis
- Chris Stringer / @jcstringer
- Michael Mitchell / @variousred
- Jessica Dillon / @jessicard
- Chad Crissman / @crissmancd
- Fork it
- Get it running
- Create your feature branch (
git checkout -b my-new-feature
) - Write your code and specs
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
If you find bugs, have feature requests or questions, please file an issue.
Run once.
$ rspec
-
Set deployment ENV variables in
.env.test
. Deploy to your personal Heroku account, not G5's.HEROKU_USERNAME=your-username HEROKU_API_KEY=your-api-key ID_RSA=your-private-key
ProTip™: See this dotenv issue if you're having issues formatting your ID_RSA.
-
By default deployment specs are not run, you have to specifically run them with
rspec -t type:deployment
ProTip™: If you're getting a 422 on the Heroku deploy, try verifying your Heroku account.
The railroady gem generates Rails model and controller UML diagrams as cross-platform .svg files, as well as in the DOT language.
$ brew install graphviz
$ rake diagram:all
$ open doc/*.svg
Copyright (c) 2013 G5
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.