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
Brody
Brody9mo ago
I tried to have 2 services, one for frontend the other for backend
that 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
Brody
Brody9mo ago
would you be okay adding me?
IssaKass
IssaKass9mo ago
Yes
Brody
Brody9mo ago
brody192
IssaKass
IssaKass9mo ago
How to add you?
Brody
Brody9mo ago
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!
IssaKass
IssaKass9mo ago
I will change them to public
Brody
Brody9mo ago
that works too
IssaKass
IssaKass9mo ago
I changed them
Brody
Brody9mo ago
okay backend looks good may i ask if you followed any tutorials for the frontend stuff?
IssaKass
IssaKass9mo ago
Yes, I have followed a react course in scrimba and made many frontend projects
Brody
Brody9mo ago
link me it please
IssaKass
IssaKass9mo ago
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.
Brody
Brody9mo ago
the proxy stuff in the vite.config.js file, does that guide tell you to do that?
Want results from more Discord servers?
Add your server