-
Notifications
You must be signed in to change notification settings - Fork 63
Home
##Introduction
This sample is a Blog application which has the same features with the official CakePHP Blog tutorial, the difference is AngularJS was used as frontend solution, and CakePHP was only use for building backend REST API.
##Technologies
AngularJS is a popular JS framework in these days, brought by Google. In this example application, AngularJS and Bootstrap are used to implement the frontend pages.
CakePHP is one of the most popular PHP frameworks in the world. CakePHP is used as the backend REST API producer.
MySQL is used as the database in this sample application.
A PHP runtime environment is also required, I was using WAMP under Windows system.
I assume you have some experience of PHP and CakePHP before, and know well about Apache server. Else you could read the official PHP introduction(php.net) and browse the official CakePHP Blog tutorial to have basic knowledge about CakePHP.
In these posts, I tried to follow the steps described in the CakePHP Blog tutorial to implement this sample application, and also reused the database schema of the tutorial.
- Prepare project skeleton
- Bake the backend REST API
- Build frontend CRUD with AngularJS
- Simple authentication and authorization
##Source codes
The project is hosted in my Github account, and follow the steps motioned in my posts to run it on Apache server:
https://github.com/hantsy/angularjs-cakephp-sample
Fork it!
##Feedback
In further posts, I could add more content about these topics, especially, REST support in CakePHP. Any suggestion is welcome.