Skip to content

FastAPI web server, integrating CoinGecko API, using Pydantic for data validation, and stores data in a PostgreSQL database.

Notifications You must be signed in to change notification settings

rafgger/fastapi_sqlalchemy

 
 

Repository files navigation

Crypto CRUD App with FastAPI and SQLAlchemy

backend

create your .env filev (or write me a msg) + get API KEY from coingecko, cd into the folder

docker-compose up -d

open on: http://localhost:8000/docs

use together with my frontend

close with: docker-compose down

(the .env file needs to be named exactly .env)

frontend with docker

.env file

api_key to obtain from Coingecko

local deployment

use branch: run-localhost have docker open

use bash: activate virtual env: venv\Scripts\activate.bat

install all missing packages (pip install ###)

uvicorn app.main:app --reload

open on: http://localhost:8000/docs

(http://127.0.0.1:8000/docs)

docker: docker-compose up -d

(frontend: frontend-reactjs-crud-crypto-app https://github.com/rafgger/frontend-reactjs-crud-crypto-app)

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.

docker

Starting template kindly provided by: Github: Django_Crud_Project in https://codevoweb.com/build-a-reactjs-crud-app-using-a-restful-api/

Build a CRUD App with FastAPI and SQLAlchemy

- 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

About

FastAPI web server, integrating CoinGecko API, using Pydantic for data validation, and stores data in a PostgreSQL database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.3%
  • Dockerfile 3.9%
  • Makefile 0.8%