Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

A backend service for frontend client calls to testbed

License

Notifications You must be signed in to change notification settings

Virtual-Finland-Development/testbed-api

Repository files navigation

Testbed API

A backend service for frontend client calls to testbed

Deploy Dev

Deploy Staging

Usage

Requirements

Docker requirements

If using docker compose, the following network must be created: vfd-network.

Create the network with the following command:

docker network create vfd-network

Run with docker with hot reloading

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.

Natively with rust

Requires rust and cargo watch to be installed

make run

or

cargo watch -x 'run --features local-dev'

Simulate the lambda runtime with a local SAM Client

Requires a local installation of SAM Client:

make run-sam

References

Rust AWS Lambda REST API starting points

Libraries / Crates

Hot reloading

Docker

OpenAPI