React and Django REST Framework
rob8624
HOBBYOP

2 years ago

Project ID: N/A

Quick query before I start working on something. I have deployed a React frontend with a Pocketbase API before on Railway, but i had to deploy so separate projects then axios to the API url

How do I deploy DRF and React (separate repos) to the same Railway project and get them talking to each other?

Closed

7 Replies

rob8624
HOBBYOP

2 years ago

N/A


2 years ago

like this -

then just have the frontend call the backends public domain.


rob8624
HOBBYOP

2 years ago

cheers Brody


rob8624
HOBBYOP

2 years ago

I guess having separate projects is detrimental to performance? I mean it 'works'....


2 years ago

I'm assuming this is a client side rendered frontend, theres no performance hit to them being in different projects, that's just not how you're meant to use Railway though.


2 years ago


rob8624
HOBBYOP

2 years ago

Yea. Ok cheers for the links


Welcome!

Sign in to your Railway account to join the conversation.

Loading...