An open API service indexing awesome lists of open source software.

https://github.com/hoaaah/yii2-cpns

Aplikasi Logbook Untuk Latihan CPNS
https://github.com/hoaaah/yii2-cpns

Last synced: 3 months ago
JSON representation

Aplikasi Logbook Untuk Latihan CPNS

Awesome Lists containing this project

README

        

yii2-basic-template
===================

Yii2-basic-template is based on yii2-app-basic created by yii2 core developers, but this repository modified it with BS4 and SBADMIN 2 template.

Features
-------------------

- Signup with/without account activation
- You can chose whether or not new users need to activate their account using email account activation system before they can log in.
- Login using email/password or username/password combo.
- You can chose how users will login into system. They can log in either by using their username|password combo or email|password.
- Rbac tables are installed with other migrations when you run ```yii migrate``` command.
- RbacController's init() action will insert 5 roles and 2 permissions in our rbac tables created by migration.
- Roles can be easily assigned to users by administrators of the site.
- Session data is stored in _protected/session folder.
- System setting are stored in config/params.php file.
- Theming is supported out of the box.
- Translation is supported out of the box.
- Administrator+ roles can manage users.
- Password strength validation and strength meter are included out of the box.
- Simple role management is included out of the box.
- Code is heavily commented out.

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](https://belajararief.com/index.php/tulisan/tekno/yii2-series/191-pemrograman-web-dengan-yii2-prainstalasi)

1. Create database that you are going to use for your application (you can use phpMyAdmin or any other tool that you like).

2. Now open up your console and ```cd``` to your web root directory, for example: ``` cd /var/www/html/ ``` or ```C:\xampp\htdocs``` or ```c:\wamp\www``` (depends on your AMP Stack)

3. Clone this project to your computer with this command:

``` git clone https://github.com/hoaaah/yii2-cpns.git logbook ```

4. Now you need to tell your application to use database that you have previously created.
Open up db.php config file in ```logbook/_protected/config/db.php``` and adjust your connection credentials.

5. Run composer install:

``` composer install ```

You are done, you can start your application in your browser. Default username and password are "administrator" (without doublequote).

> Note: First user that signs up will get 'theCreator' (super admin) role. This is supposed to be you. This role have all possible super powers :-) . Every other user that signs up after the first one will NOT get any role by default. This is because authenticated user (@ by default) is same like our member role.

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 basic 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
```

## Creator

This repository was created by and is maintained by **[Heru Arief Wijaya](http://belajararief.com/)**.

* https://twitter.com/hoaaah
* https://github.com/hoaaah