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)
api_key to obtain from Coingecko
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
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.
Starting template kindly provided by: Github: Django_Crud_Project in https://codevoweb.com/build-a-reactjs-crud-app-using-a-restful-api/
- Delete a Single Record - Connect the API Router to the AppRead the entire article here: https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy
