Skip to content

bruno-medeiros/RustDemoService

Repository files navigation

Rust Demo Service

Learning project for creating a web-service using Rust ecosystem, as well as setting up a CI/CD pipeline.

  • Main service is at demo_svc. Integration tests are in demo_svc/tests and start deps via Docker Compose.
    • ALTERNATIVE: A possible variant would be to pu integration tests in separate package?

Development

  • Building project:

    • Run docker compose -f docker-compose.yml up -d to start dependencies for integration tests.
  • Code Style: Run cargo +nightly fmt -- --config-path=.rustfmt.toml

    • (Ideally configure this in the IDE to run on save or on commit)

demo-notes – Swagger UI

The Notes API in demo-notes exposes OpenAPI docs and Swagger UI.

  1. Start the service: cargo run -p demo-notes
  2. Open Swagger UI in a browser: http://localhost:3030/swagger-ui
  3. Raw OpenAPI spec (JSON): http://localhost:3030/api-docs/openapi.json

About

Learning project for Rust ecosystem and Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published