An open API service indexing awesome lists of open source software.

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

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