A backend service for frontend client calls to testbed
- Docker: https://docs.docker.com/get-docker/
- make: https://www.gnu.org/software/make/ (optional)
If using docker compose, the following network must be created: vfd-network
.
Create the network with the following command:
docker network create vfd-network
with docker-compose:
docker compose up
After a log message: Running 'target/debug/bootstrap'
, the server should respond to http://localhost:3003 with a swagger documentation page.
Requires rust and cargo watch to be installed
- rust: https://www.rust-lang.org/tools/install
- cargo watch: https://github.com/watchexec/cargo-watch
make run
or
cargo watch -x 'run --features local-dev'
Requires a local installation of SAM Client:
make run-sam
- https://aws.amazon.com/blogs/opensource/rust-runtime-for-aws-lambda/
- https://hevodata.com/learn/rust-lambda/
- https://awslabs.github.io/aws-lambda-rust-runtime/lambda_http/index.html
- https://crates.io/crates/lambda_runtime
- https://crates.io/crates/serde
- https://crates.io/crates/tokio
- https://crates.io/crates/reqwest
- Automatic generation of OpenAPI spec: https://github.com/juhaku/utoipa