DEV Community

Andrew Cook
Andrew Cook

Posted on

2

Server in Axum

I spent some time over the last 3 days working on a server for a web application I dreamed up some time ago.

I am primarily using the Axum and SQLx crates to implement this project, but I am also relying on the reqwest and serde crates to populate the database and serialize/deserialize JSON respectively.

All of these crates work remarkably well out of the box and all of the issues I ran into were syntactic in nature.

I have written several GET, POST and DELETE routes which will be helpful when I build out the frontend with async methods. (I had started on the frontend some weeks ago. It is written in Yew which is a React-like crate for Rust, and it currently just displays some custom structs in the browser -- with no CSS involved.)

The next step on the backend is to implement User Authorization and a way to issue user tokens.

Any tips on anything I have covered or on the development lifecycle in general would be much appreciated.

Andrew

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay