Skip to content

Template repo for writing web-apps with Actix inside Unleash. See https://github.com/bricks-software/unleash-cloud-operator for an example which does both actix and k8s operator

License

Notifications You must be signed in to change notification settings

Unleash/actix-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actix-template

Template repo for writing web-apps with Actix inside Unleash.

Defaults to running at all interfaces on port 1337. Two endpoints will be available on

What this repo does

  • Shows a way to setup an actix server with correct logging and prometheus metrics for all endpoints
  • Shows a way to build a rust project with caches and docker image being built.
  • Use Clap to parse command line arguments. This will auto-generate a --help command for the binary if you're wondering what options there are
  • Sets up a github action clippy action which will give codequality warnings on https://github.com/Unleash/actix-template/security/code-scanning
  • Sets up a github action which runs tests, then builds the binary and then a docker image and uploads to aws ECR
  • Show a way to host TLS with custom SSL certificates

To run with SSL

cargo run -- -c sslexample/server-cert.pem -k sslexample/server.key -s 1337

What this repo aims to do in the future

  • Configure opentelemetry to post traces to JAEGER or other Opentelemetry compatible endpoints

Interesting documentation

What this repo does not do

  • Configure paperclip for openapi documentation. We'll make a separate repo for how to do this
  • Setup database migration or database connections. We have an ambition for making this example as well.
  • Asynchronous tasks / scheduled tasks.

About

Template repo for writing web-apps with Actix inside Unleash. See https://github.com/bricks-software/unleash-cloud-operator for an example which does both actix and k8s operator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published