Analyze, Annotate, Publish. Turn documents into data.
- Check out the git repository -
git clone git@github.com:MuckRock/documentcloud.git
- Enter the directory -
cd documentcloud
- Run the dotenv initialization script -
python initialize_dotenvs.py
This will create files with the environment variables needed to run the development environment. - Start the docker images -
inv up
This will build and start all of the docker images using docker-compose. It will bind to port 80 on localhost, so you must not have anything else running on port 80. The invoke tasks specify thelocal.yml
configuration file for docker-compose. If you would like to run docker-compose commands directly, set the environment variableexport COMPOSE_FILE=local.yml
. - Set
api.dev.documentcloud.org
andminio.documentcloud.org
to point to localhost -sudo echo "127.0.0.1 api.dev.documentcloud.org minio.documentcloud.org" >> /etc/hosts
- Enter
api.dev.documentcloud.org/
into your browser - you should see the Django API root page. - Install and run Squarelet and the DocumentCloud frontend following the instructions in their repos to view the full-stack application.