fastapi-react
fastapi-react copied to clipboard
🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
Hey, was just wondering if there are any plans to upgrade the SQLAlchemy dep? I understand it's a large upgrade that changes several conventions but sets up for SQLAlchemy 2+.
Builds are painfully slow right now, maybe the docker images can be cached?
- Update default cookiecutter values; use random password/secret values - Store environment secrets in `.env` file - Automatically initialize git repository - Add `.gitattributes` and `.gitignore` files - Add cookiecutter...
whenever I run `docker-compose up -d` everything works, but when I go to `localhost:8000` nginx returns `499` then `504`, and it does this every time.
react-scripts used by this project and typescript used are incompatible with each other. react-scripts 3.x have a peer dependency on typescript < 4 while this project pulls in typescript 4.0.2....
Allows separate models/crud/schemas files for different data models
Are you planning on integrating [SQLModel](https://sqlmodel.tiangolo.com/)? Or willing to integrate a PR that does 😅. Not promising anything, but curious.
``` from app.db.session import get_db from app.db.crud import create_user, get_user_by_email from app.db.schemas import UserCreate from app.db.session import SessionLocal def init() -> None: db = SessionLocal() user = get_user_by_email(db, email="{{cookiecutter.superuser_email}}") if...
When launching docker compose up and then going to localhost:8000, I got the following error: /app/src/views/Login.tsx TypeScript error in /app/src/views/Login.tsx(54,18): Argument of type 'unknown' is not assignable to parameter of...