Server and client code for orientation.skule.ca
- Clone the repository.
- Use rvm to get ruby version 1.9.3.
- Download Postgres.app to run Postgres locally.
- Run
bundle
to install gems. - Run
rake db:reset
to create the databases. - Run
rake db:seed_admins
to create the original admins. - Create
.env
and set all the variables shown in.env.sample
- Run
foreman start
to start the server. - Hack away.
- 2 spaces for indentation in JS and Ruby.
- 4 spaces for indentation in HTML, CSS.
- Be consistent with what's already there.
- Use single quotes for strings everywhere except when:
- Single quotes are embedded in the string, i.e. "'Hello world', said the monster."
- Variables are to be embedded in the string, i.e. "Hello #{world}"
- HTML and CSS files. Double quotes should be used strictly for these files.
- Follow the ruby style guide: https://github.com/bbatsov/ruby-style-guide
- Follow the rails style guide: https://github.com/bbatsov/rails-style-guide
- Use JSHint.
- TODOs should take the following form in code:
// TODO(username): gotta do this thing