Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/graysonarts/axum-sqlx-postgres-starter

A cargo-generate project for a basic axum server using sqlx with postgres
https://github.com/graysonarts/axum-sqlx-postgres-starter

cargo-generate

Last synced: about 2 months ago
JSON representation

A cargo-generate project for a basic axum server using sqlx with postgres

Awesome Lists containing this project

README

        

# {{ project-name }}

An opinionated starter project for axum with sqlx, postgres, nanoid, anyhow, tracing output, and EnvConfig for loading configuration.

The structure of the source:

```
src
├── infra // Things necessary to run the service, tracing, config, app state, etc
├── models // Domain models and other types to support what's in the database
├── queries // Wrappers around the database queries that return the domain models
├── migrations // Database migrations
└── routes // Controllers and Subrouters
```