rust-web-services

This project implements the same API surface which was implemented in the Pluralsight course "Creating Web Services with Go" by Alex Schultz, with Rust using the Rocket web framework.

The plan

  • Cosmos DB
  • CRUD API with Azure Functions
  • API Management
  • Frontend hosted... somehow

How-To

Some things are automated with just. Just run just for a menu.

# Initialize/Reset a local Database instance
just init-db

# Run cargo-watch against a compiled binary
just watch-api

# Run locally as an Azure Function
just start-function

Requests in requests.http are compatibile with the VSCode REST Client extension. You can use them against the API.

Build for Azure

Install the musl build tools sudo apt install musl-tools, then run just build-function.