Issue
I'm building an app in which I'm using react-js as a frontend. And now I need to provide data from APIs, now my question is should I create a new server for APIs?
Can anybody suggest to me how can I do this?
I'm using Django-restframework to interact with React.
Solution
It depends on the load/traffic on the application. If there are limited number of users then you can keep both(backend and frontend) on the same server. Django application by default serve on 8000 and i think react app on 3000.
Answered By - Ajay K
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.