Giter Site home page Giter Site logo

oqfc's Introduction

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

How does it work?

  • Sinatra app
  • Running on Ruby 1.8.7 up to 2.0.0 (and probably higher)

Setup

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

rvm install ruby-2.0.0-p353
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!

oqfc's People

Contributors

pgaspar avatar sdsantos avatar

Watchers

James Cloos avatar Inês Soares Silva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.