Giter VIP home page Giter VIP logo

wpcodevo / fastapi_sqlalchemy Goto Github PK

View Code? Open in Web Editor NEW
39.0 1.0 23.0 11 KB

In this article, I'll provide you with a simple and straightforward guide on how you can build a CRUD app with FastAPI and SQLAlchemy. The FastAPI app will run on a Starlette web server, use Pydantic for data validation, and store data in an SQLite database.

Home Page: https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy

Makefile 1.90% Python 95.36% Shell 2.75%
crud-api crud-app fastapi fastapi-crud fastapi-crud-app fastapi-sqlalchemy rest-api restful-api sqlite

fastapi_sqlalchemy's Introduction

Build a CRUD App with FastAPI and SQLAlchemy

In this article, I'll provide you with a simple and straightforward guide on how you can build a CRUD app with FastAPI and SQLAlchemy. The FastAPI app will run on a Starlette web server, use Pydantic for data validation, and store data in an SQLite database.

Build a CRUD App with FastAPI and SQLAlchemy

Topics Covered

  • Run the SQLAlchemy FastAPI App Locally
  • Run the Frontend App Locally
  • Setup FastAPI and Run the HTTP Server
  • Designing the CRUD API
  • Setup SQLAlchemy with SQLite
  • Setup SQLAlchemy with PostgreSQL
  • Create Database Model with SQLAlchemy
    • Database Model for SQLite Database
    • Database Model for Postgres Database
  • Create Validation Schemas with Pydantic
  • Define the Path Operation Functions
    • Get All Records
    • Create a Record
    • Update a Record
    • Retrieve a Single Record
    • Delete a Single Record
  • Connect the API Router to the App

Read the entire article here: https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy

fastapi_sqlalchemy'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

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.