-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steeven Andrian
committed
Oct 25, 2019
1 parent
055ce93
commit cdc8788
Showing
145 changed files
with
102,375 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.idea | ||
.package-lock.json | ||
.composer.lock | ||
.DS_Store | ||
/cache | ||
/node_modules | ||
/app/Config/Development | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
build: | ||
nodes: | ||
my-tests: | ||
environment: | ||
php: | ||
version: 7.2 # or any other released version | ||
pecl_extensions: | ||
- memcached | ||
|
||
functional-tests: | ||
environment: | ||
hosts: | ||
'local.dev': '127.0.0.1' | ||
|
||
apache2: | ||
modules: ['rewrite'] | ||
sites: | ||
o2system_app: | ||
web_root: 'public/' | ||
host: 'local.dev' | ||
|
||
analysis: | ||
project_setup: | ||
override: | ||
- 'true' | ||
tests: | ||
override: | ||
- php-scrutinizer-run | ||
- | ||
command: phpcs-run | ||
use_website_config: true | ||
- js-scrutinizer-run | ||
filter: | ||
excluded_paths: | ||
- '*.min.js' | ||
checks: | ||
php: true | ||
javascript: true | ||
coding_style: | ||
php: | ||
indentation: | ||
general: | ||
size: 1 | ||
spaces: | ||
around_operators: | ||
concatenation: true | ||
negation: true | ||
within: | ||
brackets: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 O2System Framework | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
MIT License | ||
Copyright (c) 2016 Steeve Andrian Salim | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
![alt text](https://www.o2system.id/assets/img/covers/cover-o2system-pwa-vuejs.png "O2System PWA VueJS") | ||
|
||
|
||
[![Build Status](https://travis-ci.org/o2system/vuejs.svg?branch=master)](https://travis-ci.org/o2system/vuejs) | ||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/o2system/vuejs/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/o2system/vuejs/?branch=master) | ||
[![Latest Stable Version](https://poser.pugx.org/o2system/vuejs/v/stable)](https://packagist.org/packages/o2system/vuejs) | ||
[![Total Downloads](https://poser.pugx.org/o2system/vuejs/downloads)](https://packagist.org/packages/o2system/vuejs) | ||
[![License](https://poser.pugx.org/o2system/vuejs/license)](https://packagist.org/packages/o2system/vuejs) | ||
|
||
# O2System VueJS Project Boilerplate | ||
|
||
O2System starter project boilerplate for building Single Page Application (SPA) using VueJS and Venus Multipurpose (a bootstrap based multipurpose theme). | ||
|
||
|
||
### Composer Installation | ||
|
||
The best way to use this boilerplate is using [Composer](https://getcomposer.org) | ||
``` | ||
composer create-project o2system/vuejs | ||
``` | ||
> Packagist: [https://packagist.org/packages/o2system/vuejs](https://packagist.org/packages/o2system/vuejs) | ||
### Ideas and Suggestions | ||
|
||
Please kindly mail us at [[email protected]](mailto:[email protected]]) | ||
|
||
### Bugs and Issues | ||
|
||
Please kindly submit your [issues at Github](http://github.com/o2system/vuejs/issues) so we can track all the issues along development and send a [pull request](http://github.com/o2system/vuejs/pulls) to this repository. | ||
|
||
### System Requirements | ||
|
||
- PHP 7.2+ | ||
- [Composer](https://getcomposer.org) | ||
- [NPM](https://www.npmjs.com/get-npm) | ||
- [O2System Framework](https://github.com/o2system/framework) | ||
- [VueJS](https://github.com/vuejs) | ||
- [Venus](https://github.com/o2system/venus) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Access Control Library Configuration | ||
* | ||
* @var \O2System\Kernel\DataStructures\Config | ||
*/ | ||
$accessControl = new \O2System\Kernel\DataStructures\Config([ | ||
/** | ||
* Password Hash Algorithm | ||
* | ||
* A password algorithm constant denoting the algorithm to use when hashing the password. | ||
* | ||
* The following algorithms are currently supported: | ||
* | ||
* PASSWORD_DEFAULT | ||
* Use the bcrypt algorithm (default as of PHP 5.5.0). | ||
* Note that this constant is designed to change over time as new and stronger algorithms are added to PHP. | ||
* For that reason, the length of the result from using this identifier can change over time. | ||
* Therefore, it is recommended to store the result in a database column that can expand | ||
* beyond 60 characters (255 characters would be a good choice). | ||
* | ||
* PASSWORD_BCRYPT | ||
* Use the CRYPT_BLOWFISH algorithm to create the hash. | ||
* This will produce a standard crypt() compatible hash using the "$2y$" identifier. | ||
* The result will always be a 60 character string, or FALSE on failure. | ||
*/ | ||
'algorithm' => PASSWORD_DEFAULT, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Password Hash Options | ||
* | ||
* An associative array containing options. | ||
* See the password algorithm constants for documentation on the supported options for each algorithm. | ||
* | ||
* If omitted, a random salt will be created and the default cost will be used. | ||
*/ | ||
'options' => [ | ||
/** | ||
* In this case, we want to increase the default cost for PASSWORD_BCRYPT to 12. | ||
* Note that we also switched to PASSWORD_BCRYPT, which will always be 60 characters. | ||
*/ | ||
'cost' => 12 | ||
], | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* MSISDN Regex | ||
* | ||
* If you want to be more exact with the country codes see this question on List of phone number country codes. | ||
* | ||
* @see https://code.google.com/p/libphonenumber/ | ||
*/ | ||
'msisdnRegex' => '/^\+[1-9]{1}[0-9]{3,14}$/', | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Maximum login attempts. | ||
*/ | ||
'attempts' => 5, | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Single Sign-On | ||
*/ | ||
'sso' => [ | ||
'enable' => false, | ||
'server' => null, | ||
], | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Router Addresses Configuration | ||
* | ||
* @var \O2System\Kernel\Http\Router\Addresses | ||
*/ | ||
$addresses = new \O2System\Kernel\Http\Router\Addresses(); | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
// Example Route To Default Controller | ||
$addresses->any( | ||
'/', | ||
function () { | ||
return new \App\Controllers\Landing(); | ||
} | ||
); | ||
|
||
// Example Route To Default Controller | ||
$addresses->any( | ||
'/(:any)', | ||
function () { | ||
return new \App\Controllers\Landing(); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* This file is part of the O2System PHP Framework package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Steeve Andrian Salim | ||
* @copyright Copyright (c) Steeve Andrian Salim | ||
*/ | ||
// ------------------------------------------------------------------------ | ||
|
||
use O2System\Cache\DataStructures\Config; | ||
|
||
// ------------------------------------------------------------------------ | ||
|
||
/** | ||
* Cache ItemPools Configuration | ||
* | ||
* Each offset representing the ItemPool configuration. | ||
* | ||
* @see https://github.com/o2system/cache/wiki | ||
* | ||
* @var \O2System\Cache\DataStructures\Config | ||
*/ | ||
$cache = new Config( | ||
[ | ||
'default' => [ | ||
'adapter' => 'file', | ||
], | ||
'registry' => [ | ||
'adapter' => 'file', | ||
'path' => PATH_CACHE . 'registry', | ||
], | ||
'output' => [ | ||
'adapter' => 'file', | ||
'path' => PATH_CACHE . 'output', | ||
], | ||
'images' => [ | ||
'adapter' => 'file', | ||
'path' => PATH_CACHE . 'images', | ||
], | ||
] | ||
); |
Oops, something went wrong.