Next js + Django restframework
i have next js app consuming api from django restframework can i both deploy on railway as front end and backend please answer
Solution:Jump to solution
i have next js app consuming api from django restframework can i both deploy on railway as front end and backend please answer
20 Replies
Project ID:
N/A
yes you can
man i dont have not deployed the project now but i need guidance
drf + next on railway using 5$ plan is the server being able to handle 1,000 request/second atleast please answer
probably can
yes ok any tutorials or blog on my stack and tell me if its common way to do this
deploy next? just make a new service and connect your next repo and see what happens
no need for environment variables
that's up to you
how is that i mean is it required
but you'll likely need to change the start command, you can reference this next template for the proper start command
https://github.com/railwayapp-templates/nextjs-prisma
what if im using vite for react
I do not know what your app requirements are, you tell me if you need to use any environment variables, it's your app after all
then that's not next, this question is about next
create your next project -> push to github -> in railway choose your repo -> deploy ... DONE ! note that my next app is consuming an api from my django restapi project in railway
if you are instead using vite + react, please reference this template
https://github.com/brody192/vite-react-template
and becouse its consuming api do you think any extra deployment setting needed or its same
you have a backend and a frontend, that means you need two services
two project right
no
one project
two services
possibly a database if your app needs it
for django :database project , app project , for next js : ?
no
django backend, nextJs frontend, database
all in the same project