All Projects → hscstudio → angular1-yii2

hscstudio / angular1-yii2

Licence: Apache-2.0 license
Demo Angular 1.X for web client and Yii2 for web service

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
CSS
56736 projects
shell
77523 projects
ApacheConf
554 projects

How To Create Single Page Application in minutes!
with AngularJs 1.3 and Yii 2.0

Introduction

This is a demo and a tutorial showing how to develop an application using Yii 2.0 for creating REST API and then using it from UI built with AngularJS.

Tutorial is available here.
Book is available here

Installing demo

In order to install demo clone this repository:

git clone https://github.com/hscstudio/angular1-yii2 angular1-yii2
cd angular1-yii2

Then import database angular_spa.sql.

After it's done run the following:

cd web-service
composer update --prefer-dist

Set database config in web-service\config\db.php.

Set up two hosts in your webserver. One should point to web-client, aother to web-service/web. Then set serviceBase variable in web-client\app.js to point to web-service URL.

License

Free open source

Changelog

  • 0.1 (Alpha - 11/05/2015)
  • 0.2 (Beta - 12/05/2015)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].