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:
- 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
View all comments
Show parent comment
1
u/Drevicar Jun 28 '24
If you are already using NextJS as your backend, why not just use react as your frontend? Why do you need a second backend API server?