O
O
olijen2015-08-18 15:41:02
JavaScript
olijen, 2015-08-18 15:41:02

Can you advise the correct implementation of the REST API using Yii+Backbone?

This is a test task. The essence of the task is simple: you need to create a travel planner. I can log in, see a list of planned trips, go to a specific one, see the timer before departure... Full CRUD. ACL system.
You need to implement REST.
The application is completely asynchronous (up to authorization).
I chose the following technology stack:
PHP - Yii 1.14
-RBAC
-AdminLTE template (package)
-Backbone (package)
-REST extension ( www.yiiframework.com/extension/restfullyii )
-YiiUser (module)
-YiiWheels (?)
Backbone
Underscore
JQuery
Basically, questions are caused by a bunch of Backbone -> REST -> Yii. As should work - approximately I understand. Little experience in implementation. On the project in total + - 9 days. The design is not important.
Tell me, maybe you should choose a bunch of easier? What is the best way to link backbone + yii? What you should pay attention to? What will take the most time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
matperez, 2015-08-18
@matperez

It is better to write directly in Yii2. IMHO, it's more convenient to work with Rest. Everything out of the box including normal Bootstrap support. Use JWT
for authentication . On the Backbone side, when you get a token, just add it to all requests . You don't need YiiWheels - these are Bootstrap implementations for Yii, and your interface will be implemented through Backbone. It is not clear whether you should also have an admin panel on the backbone. If not, then everything can be generated through Gii. It is better not to chase after the prettiness of the AdminLTE template. Time to add.

M
make_luv, 2015-08-18
@make_luv

On dotnet, this can be implemented in a couple of days.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question