https://github.com/josechavarriacr/yii2-angularjs
https://github.com/josechavarriacr/yii2-angularjs
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/josechavarriacr/yii2-angularjs
- Owner: josechavarriacr
- License: apache-2.0
- Created: 2017-09-23T02:00:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T18:56:01.000Z (over 4 years ago)
- Last Synced: 2025-05-13T00:53:32.276Z (11 days ago)
- Language: PHP
- Size: 1.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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](documentation/index.md).
Book is [available here](https://www.gitbook.com/book/hscstudio/angular1-yii2/details)## 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](web-service/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](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](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)