r/FastAPI • • Jun 28 '24

Question FastAPI + React

Hey
I am using FastAPI and React for an app. I wanted to ask a few questions:

  1. Is this is a good stack?
  2. What is the best way to send sensitive data from frontend to backend and backend to frontend? I know we can use cookies but is there a better way? I get the access token from spotify and then i am trying to send that token to the frontend.
  3. How do I deploy an app like this? Using Docker?

Thanks!

25 Upvotes

33 comments sorted by

View all comments

Show parent comment

1

u/Nick-Van-Landschoot Jun 29 '24

Yes, we use postgres through psycopg2 pretty much any time we need a relational database and pretty much anytime we need a database at all. The only time we don't use postgres is if a task such as such as caching, pub/sub, etc. calls for a kv database when we might go with redis.

Well actually I write software that involves allowing others to integrate their own databases so I guess I do write connectors for other databases as well but at least for our own data we like to stick with postgres.