How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

70 views
Skip to first unread message

백병화

unread,
Apr 16, 2015, 12:25:56 PM4/16/15
to django...@googlegroups.com
I want to develop a web site and mobile apps(iOS/Android) as Facebook.by using Django REST Framework AND Angularjs.
I'm confused about what steps should I follow..

Filipe Ximenes

unread,
Apr 16, 2015, 2:52:33 PM4/16/15
to django...@googlegroups.com
Hi,

I think I partially answered this to you in your previous question: https://groups.google.com/forum/#!topic/django-users/B8v9wjR4-M0
Can you tell me if you didn't understand something?

Mobile and AngularJS apps don't work exactly the same as a normal web page. While in a normal web page, the frontend (what the user sees) is processed in the backend (django) and sent to the user, in a Mobile or AngularJS app, the frontend is already in the user device and it only fetches the data to fill in the frontend. 
The default Django behaviour is to work with "normal web pages", but when you use Django REST Framework it makes it easy to develop APIs and return JSON data (JSON is one of the most popular data formats). 

Now, normal iOS apps are build in Objective-C, normal Android apps are developed in Java. But it's possible to built both iOS and Android apps using Javascript, some of the frameworks that do this are: Cordova/Phonegap, Titanium and Ionic (witch is AngularJS compatible).

There are lots of tutorials in the interned for all this technologies.
This is pretty much the basics of how this works. Feel free to ask more specific questions if you need more detailed response.



On Thu, Apr 16, 2015 at 1:25 PM, 백병화 <bark...@gmail.com> wrote:
I want to develop a web site and mobile apps(iOS/Android) as Facebook.by using Django REST Framework AND Angularjs.
I'm confused about what steps should I follow..

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f26fe122-e66f-4760-ad2c-9a74e60d5238%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
  
Filipe Ximenes
+55 (81) 8245-9204
Vinta Software Studio
http://www.vinta.com.br

백병화

unread,
Apr 16, 2015, 3:12:23 PM4/16/15
to django...@googlegroups.com

Thank you very much for replying my question.
I'm a student in Korea, so my english grammar is not good. I'm sorry for that.

I'm wondering to create a web site as Facebook.

I have 3 questions.

1) Is facebook developed as SPA? or Is it developed as SPA+MPA ?

2) Last time, I understood as when I use DRF with Angularjs, it is not needed to make front-end for Android/iOS. Did I misunderstand about it ?

3) If I need to develop front-end for iOS/Android, I'm curious what cross-platform is the best to fit DRF. Also I'm curious whether the cross-platform is good when it is compared to Native Apps.

Thank you for replying!


--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/sxQQPGwH2KQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

백병화

unread,
Apr 16, 2015, 3:12:55 PM4/16/15
to django...@googlegroups.com

Filipe Ximenes

unread,
Apr 16, 2015, 3:39:55 PM4/16/15
to django...@googlegroups.com
1) The Facebook WEBSITE is a MPA, but some of it's content is loaded via ajax (like the newsfeed). The Facebook mobile app is a native application. The Android one is developed in Java, and the iOS is developed in Objectve-C

2) If you use a cross-paltform framework like Cordova you will be programming in HTML/CSS and Javascript. The framework will handle the generation of the apps for each platform from your javascript code. HTML/CSS will define how the app looks and Javascript will handle fetching data from the server and presenting it on the app. AngularJS is a Javascript framework that give you some nice tools, but you are free to chose between using it or not.

3) There's no such a thing as "the best cross-platform to fit DRF". The backend (Django/DRF) will handle storing and processing data, and the mobile app will fetch data from the backend and show it to the user. The platform you will use and the backend are separated things and do not interfere within each other.
About using native or cross-platform, I expressed MY OPNION in the second email of the last message: https://groups.google.com/forum/#!topic/django-users/B8v9wjR4-M0
But this is a polemic subject, other people may have different opinions about it.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

백병화

unread,
Apr 16, 2015, 4:03:01 PM4/16/15
to django...@googlegroups.com

 
Thank you very much for the professional advice :)

I have more questions..

Is there a way to develop a web site by combining MPA and SPA ? 

And..

Can you please recommend a tutorial of django+angularjs that is about configuration, building structure, and etc for dividing backend and frontend ?

Filipe Ximenes

unread,
Apr 16, 2015, 4:14:09 PM4/16/15
to django...@googlegroups.com
Yes, you can develop a website were some data is processed and presented in the template by the backend, and some is fetched using AJAX (Javascript/Angular) from the frontend.

I do not know a specific tutorial to point you, but from a quick search, this one seems to cover a lot of things: 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages