https://github.com/cnstr/averter
Redirects Canister v1 to v2
https://github.com/cnstr/averter
Last synced: about 1 year ago
JSON representation
Redirects Canister v1 to v2
- Host: GitHub
- URL: https://github.com/cnstr/averter
- Owner: cnstr
- License: mit
- Archived: true
- Created: 2023-01-07T20:28:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-19T04:33:24.000Z (about 3 years ago)
- Last Synced: 2025-03-06T18:49:33.416Z (over 1 year ago)
- Language: Rust
- Size: 428 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Canister Averter
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
### Development
This project utilizes [`Rust`](https://rust-lang.org) and `cargo`.
To build the project, run `cargo build` and to run the project, run `cargo run`.
### Deployment
You shouldn't really be deploying this project on your own (unless you feel like hosting this for some reason).
Deployment utilizes [`task`](https://taskfile.dev) and private Taskfile which contains deployment instructions.
The `task deploy` command will automatically trigger [cnstr/ci](https://github.com/cnstr/ci) which will:
* Build and publish the Docker image to the [tale.me](https://tale.me/docker) registry
* Rewrite the `kubernetes/deployment.yaml` file with the new image tag
* Apply the new deployment to the cluster
> Copyright (c) 2023, Aarnav Tale