Public API to the victims data set.
For all targets run make help
- Install dependencies via
govendorby running:make deps - Run
make victims-api - Execute
./victims-api run
- Install dependencies via
govendorby running:make deps - Run
make static-victims-api - Execute
./victims-api run
- Run
make image
To find out the available flags run:
$ victims-api run --help
Example:
$ victims-api run \
--mongodb-database victims \
--mongodb-host 127.0.0.1 \
--mongodb-user myuser \ # Optional
--mongodb-password secret # Optional
TODO: Update environment vars to either use a URI OR add a MONGODB_HOST environment variable.
Set the following environment variables:
MONGODB_USER: User to connect to the databse withMONGODB_PASSWORD: Password to connect to the database withMONGODB_DATABASE: Databse to use (usuallyvictims)
$ ./victims-api --mongodb-host 127.0.0.1 --mongodb-use-env