Skip to content
Open Manifesto API
Python Mako Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
manifesto
migrations
tests
.env
.gitignore
Dockerfile
LICENSE
README.md
docker-compose-test.yml
docker-compose.yml
requirements.txt
runtests.sh

README.md

open-manifesto-api

Open Manifesto API

Requirements

  • docker
  • docker-compose

Setup

git clone git@github.com:open-manifesto-project/open-manifesto-api.git
cd open-manifesto-api
docker-compose up -d

For expose api in other PORT, for example 5001:

PORT=5001 docker-compose up -d

Remove current database

If you want remove database could make of several ways:

  • Put option -v when you down docker-compose:
docker-compose down -v
  • Remove docker volumen when the docker-compose is down:
docker volume ls (list volume)
docker volume rm NAME_VOLUME (remove volume)

Load initial data

With docker-compose running you can exec the next command for load initial data:

docker exec -ti oma_web flask database initial FOLDER

FOLDER is a folder with .json files

API Documentation

http://localhost:5000

Tests

Run test:

docker-compose -f docker-compose-test.yml run --rm test
You can’t perform that action at this time.