Coder Social home page Coder Social logo

amanikiruga / acm-udel-leaderboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ourtigarage/hacktoberfest-leaderboard

0.0 0.0 0.0 1.15 MB

The hacktoberfest summit leaderboard

Home Page: https://hacktoberfest-leaderboard.herokuapp.com/

License: MIT License

Ruby 49.39% HTML 49.36% CSS 1.25%

acm-udel-leaderboard's Introduction

Build Status

hacktoberfest-leaderboard

Deploy

This is the leaderboard application for the Hacktoberfest summit. The application is kept simple so you can improve it with your own pull requests to help you contribute for Hacktoberfest.

The application is hosted on Heroku. Visit it here

Happy coding!

How to test & run locally

The application is written in Ruby, using the Sinatra framework.

Need to learn Ruby ? Visit Rubymonk

Setup dev environment

First, you need to install a ruby interpreter, alongside with the gem ruby package management tool. Visit Ruby language website for more details.

JRuby is also supported. It's a popular ruby interpretter written in pure java.

You'll probably need an editor too. Notepad++ is a simple alternative, Visual Studio Code is a more advanced one.

If you're running behind a proxy, you'll need to set both environment variables HTTP_PROXY and HTTPS_PROXY before going further

Download and install bundler by running

    gem install bundler

Then, go to the project directory and run

    bundle install

Running tests

In order to run unit tests, run

    bundle exec rake

If you're running behind a proxy, you'll need to set both environment variables HTTP_PROXY and HTTPS_PROXY

Configuring the app

Configuration is exclusively done by setting environment variables:

  • PORT : The port to bind HTTP to. Default to 80
  • RACK_ENV : Should be set to production. Automatically set when deploying to Heroku.
  • GH_TOKEN : The token to authenticated to github. By default, no token is used, so API calls are not authenticated.
  • EVENT_DATE : The date to restrict contribution search to. It must follows the github search date format (more details here). Default value is >=2005 which basically fetch everything without any restriction
  • PARTICIPANTS_FILE : The URI or file path to the file containing the participants' github usernames. See this file for an example of how to format that file
  • OBJECTIVE : Number of pull requests to make in order to complete the challenge. Default value is 5

Again, if the app running behind a proxy, you'll need to set both environment variables HTTP_PROXY and HTTPS_PROXY before running it

Running the app

Then start the application by running

    bundle exec rake run

then browse to http://localhost

Useful documents

acm-udel-leaderboard's People

Contributors

blimy avatar dependabot[bot] avatar elskhn avatar gbahezre avatar marcoaimo avatar phsym avatar zhangxben 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.