{"id":21800990,"url":"https://github.com/wpcodevo/rust-axum-postgres-api","last_synced_at":"2025-07-29T23:32:36.091Z","repository":{"id":214319650,"uuid":"621449584","full_name":"wpcodevo/rust-axum-postgres-api","owner":"wpcodevo","description":"Are you interested in building a Rust API with CRUD functionalities using the Axum framework and PostgreSQL database? If so, you're in the right place! In this article, I will guide you through building a functional note-taking application API using Rust, Axum, SQLX, and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2024-01-09T18:33:28.000Z","size":29,"stargazers_count":60,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T09:30:17.714Z","etag":null,"topics":["axum","axum-framework","postgres","postgresql","rust","sqlx"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/rust-crud-api-example-with-axum-and-postgresql/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpcodevo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-30T17:26:47.000Z","updated_at":"2025-05-16T06:23:40.000Z","dependencies_parsed_at":"2023-12-27T11:48:50.750Z","dependency_job_id":"28059dd8-7c90-4e79-9a2a-ab35f402a86d","html_url":"https://github.com/wpcodevo/rust-axum-postgres-api","commit_stats":null,"previous_names":["wpcodevo/rust-axum-postgres-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wpcodevo/rust-axum-postgres-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-axum-postgres-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-axum-postgres-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-axum-postgres-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-axum-postgres-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/rust-axum-postgres-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Frust-axum-postgres-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267779970,"owners_count":24143200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axum","axum-framework","postgres","postgresql","rust","sqlx"],"created_at":"2024-11-27T11:15:32.678Z","updated_at":"2025-07-29T23:32:36.041Z","avatar_url":"https://github.com/wpcodevo.png","language":"Rust","readme":"# Rust CRUD API Example with Axum and PostgreSQL\n\nAre you interested in building a Rust API with CRUD functionalities using the Axum framework and PostgreSQL database? If so, you're in the right place! In this article, I will guide you through building a functional note-taking application API using Rust, Axum, SQLX, and PostgreSQL.\n\n![Rust CRUD API Example with Axum and PostgreSQL](https://codevoweb.com/wp-content/uploads/2023/04/Rust-CRUD-API-Example-with-Axum-and-PostgreSQL.webp)\n\n## Topics Covered\n\n- Run the Axum PostgreSQL API Locally\n- Run the Axum API with a Frontend Application\n- Setup the Axum and Rust Project\n- Setup Postgres and pgAdmin Servers with Docker\n- Run Database Migrations with SQLx-CLI\n    - Connect to the Postgres Server with SQLx\n- Create the SQLX Database Model\n- Create the Request Validation Structs\n- Implement the CRUD Functionalities\n    - Axum Route Handler to Fetch All Records\n    - Axum Route Handler to Add a Record\n    - Axum Route Handler to Fetch a Record\n    - Axum Route Handler to Edit a Record\n    - Axum Route Handler to Delete a Record\n    - The Complete Axum Route Handlers\n- Create the CRUD API Endpoints\n- Register the Axum Router and Setup CORS\n- Conclusion\n\n\nRead the entire article here: [https://codevoweb.com/rust-crud-api-example-with-axum-and-postgresql/](https://codevoweb.com/rust-crud-api-example-with-axum-and-postgresql/)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Frust-axum-postgres-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Frust-axum-postgres-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Frust-axum-postgres-api/lists"}