zero-to-production
realworld-axum-sqlx
zero-to-production | realworld-axum-sqlx | |
---|---|---|
87 | 12 | |
5,857 | 824 | |
- | 1.8% | |
6.1 | 0.0 | |
3 months ago | 11 months ago | |
Rust | Rust | |
Apache License 2.0 | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zero-to-production
-
Dependency management fatigue, or why I forever ditched React for Go+Htmx+Templ
I'd highly recommend reading some articles by Luca Palmieri[1], or even buying his book[2]. Although I didn't learn this stack by working through his book, whenever I had questions through the years, my searches usually led me to his articles which are often excerpts from the larger book.
The high level of API stability and lack of churn in the Actix ecosystem makes the book a particularly good investment for someone looking to settle on this stack in my opinion. In keeping with the topic of this submission, I doubt I'd be comfortable spending money on a similar book about building web apps with React.
[1]: https://www.lpalmieri.com/posts/2020-08-09-zero-to-productio...
[2]: https://www.zero2prod.com
- Rust for Rustaceans
-
Empowering Web Privacy with Rust: Building a Decentralized Identity Management System
Zero to Production in Rust - Book by Luca Palmieri: An in-depth book that guides readers through building a fully functional backend application in Rust, from zero to production.
-
Rust books to read
And the book "Zero To Production In Rust - An introduction to backend development", I didn’t read it yet but seems pretty good
-
How to read a YAML configuration file in my Rust service?
It’s a lot simpler if you add serde to the mix (derive Deserialize for your settings types). Have a look at the example from the Zero to Production book: https://github.com/LukeMathWalker/zero-to-production/blob/main/src/configuration.rs
-
Ask HN: What to use for a Rest API written in Rust?
You probably want to check out the Zero to Production book which is about using Rust for back-end development.
https://www.zero2prod.com/
-
I’ve fallen in love with rust so now what?
If your'e more into a tutorial with a book https://www.zero2prod.com/ is really good. You gonna build a newsletter service. With all the good stuff in backend development.
-
Hyper – A fast and correct HTTP implementation for Rust
If you want to build a backend in Rust, Axum (which uses hyper underneath) is pretty recommended these days, as it's all in the tokio ecosystem. Actix Web is good too, but it has its own ecosystem of libraries. I read the book Zero To Production in Rust [0] which was a great overview on not just Rust but scalable backend architectures as a whole.
Interestingly, Cloudflare wanted to use hyper but found that it was too correct, so they had to build their own [1].
[0] https://www.zero2prod.com
[1] https://blog.cloudflare.com/how-we-built-pingora-the-proxy-t...
-
Conversion?
In addition to the book, which has already been recommended. If you’re specifically into backend you should try Zero to Production. Luca really knows what he’s talking about, and it’s an excellent overview of backend rust and the development process in general.
-
Do you know any programming tutorials where somebody explains how to write an app from the architecture point of view?
I highly recommend the book Zero to Production in Rust which also has an associated GitHub. I like the style of the writing and the explanations used within the book. Even though it uses Rust, the concepts seem to work in any language - I have applied the concepts to both Go and Python in the past.
realworld-axum-sqlx
-
Hey Rustaceans! Got a question? Ask here (7/2023)!
This was one of the objectives when we created https://github.com/launchbadge/realworld-axum-sqlx
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Clap can actually load values from the environment now: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/config.rs
-
Entrait v0.3.2
I'm working on a PoC to rewrite the realworld app from launchbadge to use entrait: https://github.com/audunhalland/rust-realworld-ioc/ (work in progress), maybe it can be used as inspiration.
-
A(nother) Realworld implementation: tokio, axum, and sqlx
While there already exists a fantastic implementation of the spec written by the sqlx authors, I wanted to use this as a Rust playground for myself and others to poke around the ecosystem. I'm sure there's quite a bit of room for improvement, and I'm looking forward to opening this up for those in a similar boat and learning Rust.
-
Hey Rustaceans! Got a question? Ask here! (25/2022)!
I'm following some examples for creating a server with Axum like realworld-axum-sqlx and customize-extractor-error. The second one shows how to get request errors related to json and I'd like to know if there's anyway to make the where clause more error-proof.
-
Code review request
I've just migrated from actix-web to axum, so it's the backend that I'm interested in people's thoughs on. I've taken a fair amount of design inspiration from the realworld-axum-sqlx project.
-
The Rustacean way to build a complete web app?
Here is a realworld-spec in Axum: https://github.com/launchbadge/realworld-axum-sqlx
-
Backend using rust
https://github.com/launchbadge/realworld-axum-sqlx is Axum based implementation of the Realworld specification
-
Tools to generate type safe code models from Postgres schema?
Here's an example codebase using these features: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/http/articles/listing.rs
-
Web development
Realworld Spec with Axum
What are some alternatives?
rust-by-example - Learn Rust with examples (Live code editor included)
workers-rs - Write Cloudflare Workers in 100% Rust via WebAssembly
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
realworld - "The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
black-hat-rust - Applied offensive security with Rust - https://kerkour.com/black-hat-rust
docker-rust - The official Docker images for Rust
rust-blog - Educational blog posts for Rust beginners
validator - Simple validation for Rust structs
tour_of_rust - A tour of rust's language features
Seed - A Rust framework for creating web apps
book - The Rust Programming Language