r/FastAPI • u/[deleted] • Jun 28 '24
Question FastAPI + React
Hey
I am using FastAPI and React for an app. I wanted to ask a few questions:
Is this is a good stack?
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.
How do I deploy an app like this? Using Docker?
Thanks!
25
Upvotes
2
u/Amocon Jun 28 '24
at least it works for me
generally (and i am no expert) https for encription and send data using the post method because the body gets encripted too
using aws: i used cloudfront for my frontend and deployed my fastapi app via ecs. Yes i used docker for this