part of assignment
- docker
- docker-compose
- make
make build
to all build local imagespgsync
an elt pipeline application in pythonapp
server application written ingolang
make up
to bootstrap all applications
curl -X POST --location "http://localhost:8080/projects" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{
\"name\": \"p1\",
\"description\": \"awesome description\",
\"users\": [
\"john doe\",
\"jane doe\"
],
\"hashtags\": [\"h1\", \"h2\"]
}"
curl 'http://localhost:8080/projects' \
-H "Content-Type: application/json" \
-H "Accept: application/json"
curl -X PATCH --location "http://localhost:8080/projects" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{
\"id\": 51,
\"name\": \"p1\",
\"description\": \"awesome description\",
\"users\": [
\"john doe\",
\"jane doe\"
],
\"hashtags\": [\"h1\", \"h2\"]
}"
curl -X POST --location "http://localhost:8080/projects/search" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "{
\"description\": \"dumy\",
\"fuzziness\": 2
}"
internal/api
: business logicinternal/env
: env parsinginternal/es
: managing elastic search clientinternal/models
: database modelsinternal/routes
: configuring api (above) and httpinternal/utils
: helper functions- pgsync reads from pg wal,
transforms it as prescribed in
pg/schema.json
and finally dumps it into elasticsearch