Giter Site home page Giter Site logo

wpcodevo / rust-postgres-crud-sqlx Goto Github PK

View Code? Open in Web Editor NEW
42.0 1.0 5.0 24 KB

In this article, you'll learn how to build a CRUD API in Rust using SQLX, Actix-web, and PostgreSQL. Learning how to build a CRUD API as a developer will equip you with valuable skills for building robust, maintainable, and scalable applications.

Home Page: https://codevoweb.com/rust-build-a-crud-api-with-sqlx-and-postgresql/

Shell 2.83% Makefile 5.71% Rust 91.46%
actix-web api crud crud-api crud-application crud-operations postgres postgresql restapi rust

rust-postgres-crud-sqlx's Introduction

Rust - Build a CRUD API with SQLX and PostgreSQL

In this article, you'll learn how to build a CRUD API in Rust using SQLX, Actix-web, and PostgreSQL. Learning how to build a CRUD API as a developer will equip you with valuable skills for building robust, maintainable, and scalable applications.

Rust - Build a CRUD API with SQLX and PostgreSQL

Topics Covered

  • Run the Rust SQLX Project Locally
  • Run the Rust SQLX API with a React.js App
  • Setup the Rust Project
  • Setup PostgreSQL and pgAdmin with Docker
  • Create and Migrate the Database Queries
  • Create the SQLX Database Model
  • Create the Validation Schemas
  • Create CRUD Route Functions
    • Fetch All Records
    • Add New Record
    • Retrieve a Single Record
    • Edit an Existing Record
    • Delete a Record
    • Merge the Route Functions
  • Register the Routes and Add CORS
  • Test the Rust CRUD API
    • Perform the CREATE Operation
    • Perform the UPDATE Operation
    • Perform the READ Operation
    • Perform the DELETE Operation

Read the entire article here: https://codevoweb.com/rust-build-a-crud-api-with-sqlx-and-postgresql/

rust-postgres-crud-sqlx's People

Contributors

wpcodevo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.