tunecino / yii2-app-builder
Fork of Yii 2 Advanced Project Template With RESTful API, OAuth 2.0 and Schema Builder
Installs: 120
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 6
Forks: 1 267
Open Issues: 1
Type:project
pkg:composer/tunecino/yii2-app-builder
Requires
- php: >=5.4.0
- tunecino/yii2-schema-builder: *
- yiisoft/yii2: ~2.0.6
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/verify: ~0.3.1
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
README
This is a fork of yiisoft/yii2-app-advanced template to which I have added the following:
- 📁
apifolder as implementation of Yii2 RESTful API framework - 📁
authfolder to provide access/refresh tokens as implementation of OAuth 2.0. (documentation and examples to be added later) - tunecino/yii2-schema-builder extension to both
frontendandapiapps.
The plan is to keep this fork up-to-date with official template while keep improving builder & RESTful related stuff.
Installation
If you do not have Composer, you may follow the instructions in the Yii Guide or getcomposer.org to install it.
You can then install this project template using the following command:
composer create-project --prefer-dist tunecino/yii2-app-builder your-app-name
Once the command finish go inside the created folder and init the app on dev mode same as you usually do with the advanced template:
cd your-app-name
./init
Then create a new database and adjust related configurations in common/config/main-local.php. You may also need to set document roots of your web server as shown in the 4th step of the Preparing application section except that you'll also need to do the same for api.dev and auth.dev. Alternatively you can also use vagrant.
Usage
After installing the template, configuring DB and init the dev mode, go to either frontend.dev/index.php?r=builder or api.dev/builder, use the GUI to prototype your app then hit that Generate button. If it says DONE, the preview link of each entity should lead you to a working app.