The website of DevCon Philippines
Clone or download
#21 Compare This branch is 108 commits ahead of bryanbibat:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
doc
lib
public
script
spec
vendor
.gitignore
.ruby-version
.rvmrc
.travis.yml
Capfile
Gemfile
Gemfile.lock
Guardfile
LICENSE.txt
README.md
Rakefile
config.ru

README.md

image

  • Build Status
  • Code Climate
  • Dependency Status
  • Coverage Status

DevCon

This is a work-in-progress revamp for the website of Developers Connnect Philippines

Developer Notes

This is a Ruby 2.1 + Rails 4.2 + PostgreSQL app so running a local copy should look something like:

git clone git://github.com/devcon-ph/devcon.git
cd devcon
bundle install
cp config/database.yml.example config/database.yml
vim config/database.yml
rake db:create
rake db:migrate
bundle exec guard

Guard will run both the Unicorn server at port 3000 and the specs.

This app uses better_errors for debugging. Don't forget to set the TRUSTED_IP environment variable if you're not testing on your local machine.

This app also uses rails_panel so you don't need to look at the development log while developing, and rack-livereload so you don't need to reload when you make a change to the views or assets.

Creating a user

To create an admin user, open the console (rails c) and enter the following:

User.create email: "test@example.com", password: "password", password_confirmation: "password", roles: ["admin", "moderator", "author"]

Plans

All future enhancements are logged at https://github.com/devcon-ph/devcon/issues. Anyone may fork this project and provide pull requests related to those enhancements.

Deployment

This app has only one main branch, the master branch.

When deploying a new build, test it first in staging (http://beta.devcon.ph) using bundle exec cap staging deploy.
Once verified, you can now deploy it to the production site (http://devcon.ph) using bundle exec cap production deploy.

As of this writing, only Bry and Terence have access rights to deploy to the server.