Naabs2 is the second Network Access and Billing System
now based on the Yii2 framework.
common
config/ shared configurations
mail/ view files for e-mails
models/ model classes used in both backend and frontend
console
config/ console configurations
controllers/ console controllers (commands)
migrations/ database migrations
models/ console-specific model classes
runtime/ files generated during runtime
backend
assets/ application assets such as JavaScript and CSS
config/ backend configurations
controllers/ Web controller classes
models/ backend-specific model classes
runtime/ files generated during runtime
views/ view files for the Web application
web/ the entry script and Web resources
frontend
assets/ application assets such as JavaScript and CSS
config/ frontend configurations
controllers/ Web controller classes
models/ frontend-specific model classes
runtime/ files generated during runtime
views/ view files for the Web application
web/ the entry script and Web resources
widgets/ frontend widgets
vendor/ dependent 3rd-party packages
environments/ environment-based overrides
tests various tests for the advanced application
codeception/ tests developed with Codeception PHP Testing Framework
The minimum requirement by this application template that your Web server supports PHP 5.4.0, mycrypt, MySQL 5.4, composer.
git clone git@github.com:davidjeddy/naabs2.git
cd naabs2
./init
composer global require "fxp/composer-asset-plugin:~1"
composer install --prefer-dist --profile -o -v
components['db']
configuration in common/config/main-local.php
./yii migrate
/path/to/yii-application/frontend/web/
and using the URL http://frontend/
/path/to/yii-application/backend/web/
and using the URL http://backend/
composer install --prefer-dist --profile --no-dev -o -v
composer install --prefer-dist --profile -o -v
php -S localhost:8080 > /dev/null 2>&1 &
./tests/codeception/bin/yii migrate
export PATH=$PATH:./tests/codeception/bin
codecept build -c ./tests/codeception/frontend && codecept run -c ./tests/codeception/frontend
codecept build -c ./tests/codeception/backend && codecept run -c ./tests/codeception/backend
To login into the application, you need to first sign up, with any of your email address, username and password. Then, you can login into the application with same email address and password at any time.