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 image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay