Govcode is an application that lists government open source projects. The purpose is to track what is being worked on and build analytics on top of it.
-
Clone this repo or a fork of it
git clone https://github.com/cfpb/collab.git cd collab
-
Make sure you have
pip
andvirtualenv
installed: -
Edit the config settings locally to match your environment. You can find them at /config/init.py
-
Create the database tables:
python ./manage.py shell >>> from extensions import db >>> db.create_all()
-
Run the Flask server:
python ./manage.py runserver
-
Go to http://localhost:5000 in your browser.
At this point your database should be empty. To actually import the packages you need to run the import script.
-
First you need to get a Github:
Go to https://github.com/settings/tokens/new, create a token with
public_repo
access and copy the token. -
Store the token in an environment variable:
export GH_TOKEN=xxxxxxxxxxxx
-
Run the import script:
python gh_import.py