Skip to content

improvebraga/oqfb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the source code behind the "O que falta em Braga?" concept. Make sure you check out the Usage Guidelines.

How does it work?

  • Sinatra app
  • Running on Ruby 1.8.7 up to 1.9.3

Setup

Install Ruby 1.9.3 (if necessary). RVM is optional, but highly recommended.

rvm install ruby-1.9.3-p429
git clone https://github.com/pgaspar/oqfc.git
cd oqfc

Install bundler

gem install bundler

Install the gems

bundle install --without production

Configure the app

  • duplicate config/config.rb.example
  • rename it to config.rb
  • open it and change the necessary settings

Run the server

ruby app.rb

Go to http://127.0.0.1:4567

Customization

App global settings are available on your config/config.rb. Here you can change the city name and background color, among other things.

For the Facebook Comments plugin to work you'll need to:

  • create a Facebook App
  • make sure the :site_url setting corresponds to the Site URL and App Domains settings on your Facebook App configuration
  • set your Facebook App ID in the :fb_app_id setting

You may also want to:

  • change public/img/favicon.png to your own color
  • change public/img/logo.png (this image is used by Facebook when sharing)
  • customize the Facebook sharing text via the :meta_description setting

Deployment

The app is ready for deployment in Heroku. Troubleshoot here | Custom Domains.

Note: You need to remove the config/config.rb line from .gitignore so your configuration is sent to Heroku.

Contributing

Fork, create a topic branch, change the code and create a Pull Request. Thanks!

About

Source code for the "O Que Falta em Braga?" concept.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 42.0%
  • Ruby 34.7%
  • CSS 17.7%
  • JavaScript 5.6%