Getting Started
Download sample configuration and data
Create a new empty directory and run the commands below. This will download a sample configuration file and a sample NY Taxi Dataset file.
curl -o dozer-config.yaml https://raw.githubusercontent.com/getdozer/dozer-samples/main/connectors/local-storage/dozer-config.yaml
curl --create-dirs -o data/trips/fhvhv_tripdata_2022-01.parquet https://d37ci6vzurychx.cloudfront.net/trip-data/fhvhv_tripdata_2022-01.parquet
Run Dozer binary
dozer -c dozer-config.yaml
Dozer will start processing the data and populating the cache. You can see a progress of the execution from the console.
Query the APIs
When some data is loaded, you can query the cache using gRPC or REST
# gRPC
grpcurl -d '{"query": "{\"$limit\": 1}"}' -plaintext localhost:50051 dozer.generated.trips_cache.TripsCaches/query
# REST
curl -X POST http://localhost:8080/trips/query --header 'Content-Type: application/json' --data-raw '{"$limit":3}'
Alternatively, you can use Postman to discover gRPC endpoints through gRPC reflection
More Samples
Check out Dozer's samples repository for more comprehensive examples and use case scenarios.