-
Notifications
You must be signed in to change notification settings - Fork 43
Home
This is the app. Don't freak out quite yet, it's really quite easy.
The entire app is an angular.js webapp in a privileged context (this means we can get around Same Origin policy and the likes). All the code is in the data folder, and from now on, I will refer everything relative from that folder.
It is bootstrapped from a <script>
tag in rested.html called js/app.js. After this, it cascades down the scopes, beginning with js/controllers/root.js. After this, we are in angular territory.
RootCtl is the master of a view called views/main.html. In this view you can see the logic forks in three, and these three are:
- js/directives/collections.js - The left section of the app; where the collections of the user is stored.
- js/directives/request.js - The right section in the app; where the user sends requests to servers.
- js/directives/modal.js - The directives that handles any and all modal dialogues.
This is the basic structure of the app. See, pretty basic!
There are also some other things in there like services and filters, which you should know pretty well if you know angular. If not, there is plenty of guides online with how to use filters and services.