tiangolo / full-stack-fastapi-couchbase

Full stack, modern web application generator. Using FastAPI, Couchbase as database, Docker, automatic HTTPS and more.
MIT License
439 stars 84 forks source link

Any plan for creating a SQL version? #3

Closed giesberge closed 5 years ago

giesberge commented 5 years ago

I'm loving this full-stack but I don't think CouchDB is right for my purposes. Having SQL could be nice.

tiangolo commented 5 years ago

Yes, it's the next thing I have planned for the next days/weeks.

I was first cleaning a bit https://github.com/tiangolo/full-stack (which uses Flask instead of FastAPI), to then build it based on that. And then creating https://DockerSwarm.rocks, to reference it in all these generators for deployment.

Most of the code (except the endpoints, all the Flask -> FastAPI) would be compatible.

Also, have in mind that this doesn't use CouchDB but Couchbase (they are similar in idea and share roots, but still, different). Couchbase has N1QL, a SQL-like language. It's still a document-oriented DB, but with a query language very similar to SQL and support for some joins, etc.

tiangolo commented 5 years ago

Here it is! FastAPI with PostgreSQL, using SQLAlchemy: https://github.com/tiangolo/full-stack-fastapi-postgresql

:tada: :cake: :rocket: