Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/githubjeka/angular-yii2
Just example of application on AngularJS with server-side Yii2 Rest API.
https://github.com/githubjeka/angular-yii2
Last synced: 1 day ago
JSON representation
Just example of application on AngularJS with server-side Yii2 Rest API.
- Host: GitHub
- URL: https://github.com/githubjeka/angular-yii2
- Owner: githubjeka
- Created: 2014-03-21T10:22:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T09:13:39.000Z (over 7 years ago)
- Last Synced: 2024-12-25T07:22:37.429Z (18 days ago)
- Homepage:
- Size: 82 KB
- Stars: 207
- Watchers: 38
- Forks: 81
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-yii2 - githubjeka/angular-yii2
README
# GET STARTED
```
$ git clone https://github.com/githubjeka/angular-yii2.git
$ cd angular-yii2
$ git submodule init
$ git submodule update
```### Init client ###
```
$ cd client-angular
$ bower update
```See more info https://github.com/AngularYii2/angularyii2.github.io
### Init server: ###
[![Build Status](https://travis-ci.org/githubjeka/yii2-rest.svg)](https://travis-ci.org/githubjeka/yii2-rest)
```
$ cd rest
$ composer install --prefer-dist
```For more information by init rest server please see description of [yii2-rest repository](https://github.com/githubjeka/yii2-rest)
## Test app yii2 rest Api and angular client side
Demo Client - [http://angularyii2.github.io/](http://angularyii2.github.io/)
Demo Server - [https://yii2-rest-githubjeka.c9.io/rest/web/](https://yii2-rest-githubjeka.c9.io/rest/web/)
Not Found (#404) is OK, because rules is
```php
[
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => true,
'showScriptName' => false,
'rules' => [
['class' => 'yii\rest\UrlRule', 'controller' => ['v1/post', 'v1/comment', 'v2/post']],
'v1/user/login' => 'v1/user/login',
'POST v2/user/login' => 'v2/user/login',
'OPTIONS v2/user/login' => 'v2/user/login',
],
],
]
```
### Additional sources of knowledge- [:link: How To Create Single Page Application in minutes! with AngularJs 1.3 and Yii 2.0 ](https://github.com/hscstudio/angular1-yii2)