GithubHelp home page GithubHelp logo

cje369 / git-achievements Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hkpeprah/git-achievements

0.0 0.0 0.0 1.39 MB

Earn achievements using Github

Home Page: http://www.git-achievements.com

License: Other

Python 46.66% CSS 14.60% CoffeeScript 12.96% Shell 0.20% JavaScript 25.58%

git-achievements's Introduction

Git Achievements

Using Git Achievements

  • Head to www.git-achievements.com and register through OAuth.
  • Add www.git-achievements.com/services/hooks/web as a webhook in your repository
  • Done

Development Setup

  1. Set up a virtual environment for the project.
  2. Enable the virtual environment and run pip install -r requirements/dev.txt from the project directory.
  3. Run python manage.py syncdb to initialize the database.
  4. Run python manage.py migrate to forward the database.
  5. Run python manage.py add_sample_data to load the initial data.
  6. Run python manage.py runserver to launch the server.
  7. Add social auth key/secret pair if you want to login as your Github profile, otherwise you can login via the admin page /admin, then navigate to the root.
  8. Set up a watcher to convert all SCSS files to CSS files.
  9. Download coffee and set it as a watcher coffee -cw app/**/*.coffee to compile all coffeescript that you may make changes to.

Getting set up (Production or Team Server)

The following two resources provide excellent information on how to get up and running with your Django application:

Besides those two guides, if you're familiar with setting up a Django application on your server, the steps to getting your own local instance up and running aren't that bad:

  1. Set up a virtual environment for the project.
  2. Run pip install -r requirements/web.txt in the virtual environment to install the web requirements
  3. You need to have psycopg2, python-dev and nginx installed which you should have from prior steps (if on Mac, you can replace sudo apt-get install with brew install using brew).
  4. Generate a secret key/id pair by registering a new application on Github.
  5. Copy the samples/settings/custom.py settings file to gitachievements/settings/custom.py and fill it in the with the relevant information you obtained from the above steps.
  6. Run python manage.py syncdb to initialize the database.
  7. Run python manage.py migrate to migrate forward the database.
  8. If you want to have initial data, then run python manage.py add_sample_data as well.
  9. You will need coffee and sass to compile the .coffeescript and .scss, you can install coffeescript via npm and sass via gem
  10. A convenience script in included in samples/bin called gunicorn_start, you can fill that in and give it as passenger's command.

Contributing

Contributing to Git Achievements is simple; fork the repository, make your changes, and submit a pull request. To help your pull request make it easily into the repository, add tests, describe in full what issue your pull request addresses, and list the major changes. In addition, we use the following coding style:

  • CoffeeScript is indented with 4 spaces as opposed to the traditional 2.
  • Camel-casing for CoffeeScript.
  • Underscores for function names in Python (e.g. get_last_object instead of getLastObject or getlastobject)
  • Avoid JavaScript if at all possible, instead favour CoffeeScript.
  • Avoid CSS instead write a SCSS file and include as a mixin (styles should be as specific as possible unless intended to be global).

Contributors

Ford P, hkpeprah - Code + Design
Nicholas Terwoord, nt3rp - Idea
Brian L, 1337 - Code + Idea

License

GPL v2

git-achievements's People

Contributors

hkpeprah avatar navies 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.