BitsandBytes

joined 2 years ago
[–] BitsandBytes@lemmy.world 4 points 2 days ago

Thank you kindly!

[–] BitsandBytes@lemmy.world 1 points 2 days ago

Ps, I already have fixed a few things.

[–] BitsandBytes@lemmy.world 7 points 3 days ago (4 children)

Hi there, thank you for your feedback!

Not sure what you mean with title case name. Nevertheless, I chose a name with proximity to actually show that this project is implementing Axum. It took a long time before I could find a name that was unique (I know it might seem silly to just add a letter).

The README.md and GitHub project description mention Axum.

Didn't know about OnceLock. Some modules were created weeks apart from each other. During this time I might have forgotten that I used a similar library.

Didn't know about the min-sized-rust project. Found these suggested by a few users on Reddit.

Oh cool, I do not print that often. Looks a lot cleaner.

Those eprints, uhm. Might sound silly. Haven't thought about implementing it using tracing. Might have been a bit lazy. It worked fine in the datbase module, copied it afterwards over to the Redis/S3/mail modules.

Thank you for your feedback!

I'm not a full time programmer. Feedback helps me to improve myself :)

37
submitted 4 days ago* (last edited 4 days ago) by BitsandBytes@lemmy.world to c/rust@programming.dev
 

Hi there Rustians! A few months ago I posted about my hobby project. Just wanted to give an update.

Axium is a template for an API backend.

In the last few months I have added:

  • HTTP-cookie authentication (got it to work with a javascript site),
  • Password resetting,
  • User registration,
  • Example routes for interacting with S3 storage
  • Lots of input validation,
  • Caching,
  • Mailing (for the password reset and user registration).

I think that it is almost ready to be used as a backend for my website. Almost everything is marked off my wishlist, just need a few helper to help me check the security of the authentication and registration functions.

GitHub: https://github.com/Riktastic/Axium

 

Hi there! Just wanted to share a project I worked on over the past 6 weeks. It is a boilerplate/template for a fairly secure API.

It now features:

  • An example API,
  • JWT auth (using APIkeys and username + password (+ 2 factor))
  • Key rotation,
  • Built-in HTTPS/HTTP2,
  • Multiple keys per account,
  • Usage tiers,
  • Role based access,
  • Healthcheck endpoint for monitoring and docker,
  • OpenAPI documentation generation,
  • And a lot more...

This was my first Rust project. I am always in for feedback :)