This service redirects Canister v1 API requests to the Canister v2 API.
It works by completing the following tasks in order:
- Parsing query parameters and inputs
- Fetching the data using the v2 API routes
- Caching the data in an in-memory LRU cache
- Rearranging the data to match the v1 API responses
This project utilizes Rust and cargo.
To build the project, run cargo build and to run the project, run cargo run.
You shouldn't really be deploying this project on your own (unless you feel like hosting this for some reason).
Deployment utilizes task and private Taskfile which contains deployment instructions.
The task deploy command will automatically trigger cnstr/ci which will:
- Build and publish the Docker image to the tale.me registry
- Rewrite the
kubernetes/deployment.yamlfile with the new image tag - Apply the new deployment to the cluster
Copyright (c) 2023, Aarnav Tale