Flask + React deployment
I have a flask + react app that is running locally. How would I deploy it to Railway? I tried to have 2 services, one for the frontend and the other for the backend, but the frontend was unable to fetch data from the backend returning with: unexpected token < JSON. The backend is working and I tested it via postman.
Projet id: c6894929-c040-4842-8c83-4516d57a14fe
55 Replies
I tried to have 2 services, one for frontend the other for backendthat is the correct way to go about it, so lets dig into why it wasnt working can you share your repo? it would help tremendously
They are private. Can I share them ?
https://github.com/IssaKass/financial-app-backend
https://github.com/IssaKass/financial-app-frontend
would you be okay adding me?
Yes
brody192
How to add you?
haha i dont know, ive never added anyone to a private repo, i dont even think i have a private repo
though thats not something a quick google search cant solve!
I will change them to public
that works too
I changed them
okay backend looks good
may i ask if you followed any tutorials for the frontend stuff?
Yes, I have followed a react course in scrimba and made many frontend projects
link me it please
Scrimba
React Tutorial: Learn React JS - Free 11-Hour Course
The ultimate React 101 - the perfect starting point for any React beginner. Learn the basics of modern React by solving 140+ interactive coding challenges and building eight fun projects.
the proxy stuff in the vite.config.js file, does that guide tell you to do that?