react and django help

hello guys
I'm literally about to cry
I have been debugging for 4 days now
I'm trying to host an e-commerce site (food ordering site)

The last one I did
was pretty simple
just HTML AND CSS WITH DJANGO

NOW I switched to React and used Django as backend

and I can't host it

I have been having errors for days now
Please is there any guide for me

to deploy react and django
<#1006629907067064482>

Solved

34 Replies


a year ago

Were you able to deploy the react app or the django? What errors are shown in your logs?


a year ago

project id is totally applicable here btw


i have the backend and frontend on diffrent repo in my github

1364680862808936700


a year ago

Oh we are crashing at build


yes, i have all the requirement installed


a year ago

Did u set a start command in the service settings?



a year ago

You will need to. I suggest finding Railway templates for your desired stack and copy the configuration files from those into your app


a year ago

I don't know much about Django, but there's a guide on how to deploy a Django app
https://docs.railway.com/guides/django#deploy-django-app-on-railway



a year ago

Is there a reason why you’re not using django as a frontend? Personally, I don’t like using django as a backend if I’m not also using it as a frontend


a year ago

I prefer a simple api like flask in my backend


i was trying new things, i used typescript and node.js


some time


i will learn how to flask some day later


thanks man


yo guys thank u @Adam @Medim
very much
i used ur help and deployed it
thanks so much

the site is live

http://localhost:8080/



a year ago

Glad to hear it! Am I good to call this solved?


@Adam is it possible to put my front end repo inside here and the project will still be deployed successfully

1365001839501774800


a year ago

yeah! just add a new service


a year ago

if your backend is already successfully deployed it shouldn't interfere


fr, so i can add the frontend repo inside there
that cool bro


yes its successful, but the frontend is deployed in another project


a year ago

U should deploy it on the same project as your api so you can benefit from the internal network


thanks man, it worked


God im so happy


a year ago

nice, were you able to connect your frontend to your backend through the internal network?


a year ago

that way we prevent some egress fees


will be closing this chat now
thanks to you all


yes man,


a year ago

dw, I will mark as solved


a year ago

!s


Status changed to Solved medim 11 months ago


Loading...