Start with the data first. Server-side data is the constant core core of the application. If this data model is incorrect, you have nothing.
You should be able to unit test the data model to prove that you have the right attributes and relationships. It does not require much. A few test cases for insert, update, and query.
You will support this data model with internal processing.
This should also be checked on the module to demonstrate that it works, and does everything necessary for your data model. It will be a little harder as this processing.
You can then think about the data model that web services provide Ajax.
, , JSON . , , front-end GUI. .
, Ajax, .