Skip to content

LukasLohmar/project-data-engineering

Repository files navigation

project-data-engineering

build and run

  1. run docker compose up -d in root folder to start the project as a new docker container
    • if docker compose errors out with error getting credentials - err: exec: "docker-credential-desktop": executable file not found in %PATH%, out: '' -> change credsStore to credStore in %USERPROFILE%/.docker/config.json on windows or $HOME/.docker/config.json on linux
    • depending on OS or distribution docker compose is not a known command and/or aliased to docker-compose
    • the python container runs on the first start only and loads the sample data into the database, to remove the data and reset the projects use docker compose down --volumes
    • a access token is generated by the python script and printed to the docker terminal of the python image
      alt
  2. services available
    • web-api on port 6500
    • grpc on port 6501
    • database on port 6505 -> USER=postgres, PASSWORD=postgres, DB=data-system-db
    • api-documentation is available here when the container is running
  3. execute requests on the api
    • every reqest needs a generated access token
    • test web-api with swagger, enum values are generated inconsistent and its recommended to test the grpc-endpoint with gRPCui
    • start gRPCui with docker run --rm -p :6504:8040 fullstorydev/grpcui:v1.4.1 -port 8040 -plaintext host.docker.internal:6501, the service is avaiable here

the dataset is licensed under CC0: Public Domain License while this repository is licensed under MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors