Giter Club home page Giter Club logo

lpmc-site's Introduction

Getting started

  1. Install python 3.3 and postgresql (we use a new generator feature only available in 3.3)

  2. Clone the project with submodules
    git clone --recursive [email protected]:LearnProgramming/lpmc-site.git

  3. It would be best to install python dependencies just for the project by using a virtual environment
    pyvenv-3.3 venv
    source venv/bin/activate

  4. Install pip in the venv
    wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
    python3 get-pip.py

  5. Install dependencies from the requirements file
    pip3 install -r requirements.txt
    momoko requires psycopg2 which requires python3-dev and libpg-dev or your distro's equivalent

  6. In pg_hba.conf (usually at /etc/postgresql/9.3/main/), set local access to trust (as opposed to the default peer)

  7. Create an lpmc user/role and database
    sudo psql
    > create user lpmc;
    > create database lpmc;
    > grant all privileges on database lpmc to lpmc;

  8. Restart postgresql
    sudo invoke-rc.d postgresql restart

  9. Load the schema
    psql -U lpmc < schema.sql

  10. Visit the GitHub applications page and register a new developer application. The authorization callback URL should probably be http://localhost:8888/github_oauth

  11. Copy the config.yaml.example to config.yaml and edit the configuration

  12. You can now run the server
    ./server.py
    Visit http://localhost:8888 or the specified port in config.yaml

Using Vagrant

If you want to set up a virtual machine for this project using Vagrant and VirtualBox, simply follow step 2 to clone the project and run vagrant up. Once complete you can skip to step 10 and do the rest of the steps in vagrant ssh.

lpmc-site's People

Contributors

lbatson avatar zachmassia avatar raylu avatar jfredett avatar intothev01d avatar nateageek avatar prdeltoid avatar

Watchers

Zeeshaan Kazi 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.