Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 789 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 789 Bytes

Metadata microservice..

Prerequisites Add the .env & google_application_credentials.json files to this directory. Both files can be obtained from the DevOps engineer.

To run in a virtual environment

python -m venv venv
source venv/bin/activate

pip install -r requirements.txt

To run the API.

flask run

To run the Message broker connector.

python message-broker.py --target=sites-consumer

To build and run with docker

docker build --target=development -t meta-data .
docker run -p 4001:4001 meta-data

To build and run with docker compose

bash run-docker-compose.sh

Endpoints

Checkout the API documentation for available endpoints.

http://localhost:4001/api/v1/meta-data/apidocs/