1

I have backend of web app by Django, include registrations/user profile, the ability to add photo (video) file and view them, and list of places with the ability to book them.

Now I need to add the ability to work with a mobile application written in ReactJS.

The problem is that before that I did not work with mobile applications and I do not know what strategy to choose, but the frontend developer did not work with the backend. Can I pass django variables directly to the ReactJS code? Do I need additional technologies or frameworks? I would be grateful if someone shared their experience and described how to do it (preferably the least simple way)

1
  • 1
    you will need to use django-rest-framework Commented Apr 20, 2018 at 8:10

1 Answer 1

3

You have to build a REST API. In your case, the best solution would be creating the API with Django REST Framework.

It is a very powerful framework for building APIs. They provide some nice tutorials to get started with it.

After that, you can create the frontend app with React by using API calls.

Sign up to request clarification or add additional context in comments.

3 Comments

@lepiloff if this answers your question, please accept the answer by clicking on the 'check' icon.
Ok, thanks. Is it possible pass django variables directly to the ReactJS code?
Short answer: No!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.