-
Install python 3.3 and postgresql (we use a new generator feature only available in 3.3)
-
Clone the project with submodules
git clone --recursive git@github.com:LearnProgramming/lpmc-site.git
-
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
-
Install pip in the venv
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python3 get-pip.py
-
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 -
In
pg_hba.conf
(usually at/etc/postgresql/9.3/main/
), set local access totrust
(as opposed to the defaultpeer
) -
Create an lpmc user/role and database
sudo psql
> create user lpmc;
> create database lpmc;
> grant all privileges on database lpmc to lpmc;
-
Restart postgresql
sudo invoke-rc.d postgresql restart
-
Load the schema
psql -U lpmc < schema.sql
-
Visit the GitHub applications page and register a new developer application. The authorization callback URL should probably be
http://localhost:8888/github_oauth
-
Copy the
config.yaml.example
toconfig.yaml
and edit the configuration -
You can now run the server
./server.py
Visithttp://localhost:8888
or the specified port inconfig.yaml
forked from LearnProgramming/lpmc-site
Website for the LPMC
License
rafaelreg/lpmc-site
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Website for the LPMC
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published