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
1
u/Silver_Book_938 Jun 29 '24
I do use it as well (react via Nextjs) and works like a charm
If it's too sensitive, do it in the server
You can deploy both in 10 seconds in railway.app. It's no code, but they don't have a free tier, so you'll have to pay $5.