pgocaml
realworld-axum-sqlx
Our great sponsors
pgocaml | realworld-axum-sqlx | |
---|---|---|
2 | 12 | |
157 | 671 | |
- | 5.1% | |
2.4 | 0.0 | |
7 months ago | 4 months ago | |
OCaml | Rust | |
GNU General Public License v3.0 or later | 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.
pgocaml
-
Tools to generate type safe code models from Postgres schema?
I was looking around more and I found this OCaml library: https://github.com/darioteixeira/pgocaml
-
Ask HN: What is the killer app/library of your favorite language?
Although I haven't had to use it in several years, I'm quite fond of the OCaml extension I wrote which integrates PostgreSQL statements directly into the language. Values are type-checked across the boundary, SQL commands are validated at compile time, and proper prepared statements get generated (also at compile time). It's a little bit like MS Linq in concept, but it works by using PGSQL "DESCRIBE" to send the statement to the PostgreSQL server when compiling the code to do the validation and get the types. It really made writing database-baked websites less of a grind. https://github.com/darioteixeira/pgocaml
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?
livebook - Automate code & data workflows with interactive Elixir notebooks
zero-to-production - Code for "Zero To Production In Rust", a book on API development using Rust.
sqlc - Generate type-safe code from SQL
workers-rs - Write Cloudflare Workers in 100% Rust via WebAssembly
docker-rust - The official Docker images for Rust
realworld - "The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
Seed - A Rust framework for creating web apps
validator - Simple validation for Rust structs
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
sycamore - A library for creating reactive web apps in Rust and WebAssembly
spot - Spot is a concise, developer-friendly way to describe your API contract.
rust-by-example - Learn Rust with examples (Live code editor included)