hoaaah / regisapip
Aplikasi Regisapip
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/hoaaah/regisapip
Requires
- php: >=5.4.0
 - bizley/migration: ~3.0.0
 - bower-asset/izitoast: ^1.3
 - kartik-v/yii2-builder: @dev
 - kartik-v/yii2-export: *
 - kartik-v/yii2-grid: *
 - kartik-v/yii2-krajee-base: *
 - kartik-v/yii2-mpdf: *
 - kartik-v/yii2-password: *
 - kartik-v/yii2-widgets: *
 - schmunk42/yii2-giiant: @stable
 - yiisoft/yii2: *
 - yiisoft/yii2-bootstrap: *
 - yiisoft/yii2-swiftmailer: *
 
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-25 18:29:09 UTC
README
Repositori ini digunakan untuk melakukan pengumpulan data peserta SPIP sesuai dengan template output peserta SA-SPIP untuk nantinya diimpor pada aplikasi SA-SPIP BPKP.
Installation
I am assuming that you know how to: install and use Composer, and install additional packages/drivers that may be needed for you to run everything on your system. In case you are new to all of this, you can check my guides for installing default yii2 application templates, provided by yii2 developers, on Windows 8 and Ubuntu based Linux operating systems, posted on www.freetuts.org.
- 
Create database that you are going to use for your application (you can use phpMyAdmin or any other tool that you like).
 - 
Now open up your console and
cdto your web root directory, for example:cd /var/www/html/ - 
Run the Composer
create-projectcommand:composer create-project hoaaah/regisapip - 
Now you need to tell your application to use database that you have previously created. Open up db.php config file in
regisapip/_protected/config/db.phpand adjust your connection credentials. - 
Back to the console. Inside your newly installed application,
cdto the_protectedfolder. - 
Execute yii migration command that will install necessary database tables:
./yii migrateor if you are on Windowsyii migrate - 
Execute rbac controller init action that will populate our rbac tables with default roles and permissions:
./yii rbac/initor if you are on Windowsyii rbac/init 
You are done, you can start your application in your browser.
Note: Ubah konfigurasi wilayah, tahun, dan nama-nama unit peserta sesuai dengan daerah masing-masing.
<?php return [ // .... 'dinilai' => 'Kabupaten Simulasi', 'tahun' => 2018, 'unit' => [ 1 => "Inspektorat", 2 => "Badan Kepegawaian dan Pengembangan SDM", 3 => "Badan Pengelola Keuangan ", 4 => "Badan Perencanaan Pembangunan Daerah", 5 => "Dinas Pekerjaan Umum dan Penataan Ruang", 6 => "Dinas Kesehatan", 7 => "Dinas Komunikasi dan Informatika", 8 => "Dinas Penanaman Modal dan Perizinan", 9 => "Dinas Pertanian", 10 => "Dinas Pendidikan", 11 => "Sekretariat Daerah" ] //...... ];
Testing
If you want to run tests you should create additional database that will be used to store your testing data. Usually testing database will have the same structure like the production one. I am assuming that you have Codeception installed globally, and that you know how to use it. Here is how you can set up everything easily:
- 
Let's say that you have created database called
regisapip. Go create the testing one calledregisapip_tests. - 
Inside your
db.phpconfig file change database you are going to use toregisapip_tests. - 
Open up your console and
cdto the_protectedfolder of your application. - 
Run the migrations again:
./yii migrateor if you are on Windowsyii migrate - 
Run rbac/init again:
./yii rbac/initor if you are on Windowsyii rbac/init - 
Now you can tell your application to use your
regisapipdatabase again instead ofregisapip_tests. Adjust yourdb.phpconfig file again. - 
Now you are ready to tell Codeception to use
regisapip_testsdatabase.Inside:
_protected/tests/codeception/config/config.phpfile tell yourdbto useregisapip_testsdatabase. - 
Start your php server inside the root of your application:
php -S localhost:8080(if the name of your application is regisapip_, then root isregisapipfolder) - 
Move to
_protected/tests, runcodecept buildand then run your tests. 
Directory structure
_protected
    assets/              contains assets definition
    components/          contains custom made application components
    config/              contains application configurations
    console              contains console commands (controllers and migrations)
    controllers/         contains Web controller classes
    helpers/             contains helper classes
    mail/                contains view files for e-mails
    models/              contains model classes
    rbac/                contains role based access control classes
    runtime/             contains files generated during runtime
    tests/               contains various tests for the regisapip application
    translations/        contains application translations
    views/               contains view files for the Web application
    widgets/             contains widgets
assets                   contains application assets generated during runtime
themes                   contains your themes
uploads                  contains various files that can be uploaded by application users