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

N/A


medim
MODERATOR

10 months ago

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


medim
MODERATOR

10 months ago

project id is totally applicable here btw


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

1364680862808936700


medim
MODERATOR

10 months ago

Oh we are crashing at build


yes, i have all the requirement installed


medim
MODERATOR

10 months ago

Did u set a start command in the service settings?


nope


adam
MODERATOR

10 months ago

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


medim
MODERATOR

10 months 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



adam
MODERATOR

10 months 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


adam
MODERATOR

10 months 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/



adam
MODERATOR

10 months 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


medim
MODERATOR

10 months ago

yeah! just add a new service


medim
MODERATOR

10 months 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


medim
MODERATOR

10 months 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


medim
MODERATOR

10 months ago

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


medim
MODERATOR

10 months ago

that way we prevent some egress fees


will be closing this chat now
thanks to you all


yes man,


medim
MODERATOR

10 months ago

dw, I will mark as solved


medim
MODERATOR

10 months ago

!s


Status changed to Solved medim 10 months ago


Loading...