If you find this repository useful and want to use it, please consider giving it a star. This will show your support to this reposirtory and help others discover it.
Here is what you need to download for the first time if you want to develop this web site with my latest source code :
Tutorial that I have used as a reference :
- TUTORIAL CODEIGNITER 4 Playlist
- Membuat Sistem Login & Registrasi dengan CodeIgniter 4 (Menggunakan Library Myth/Auth)
Thx to : Bootstrap v4.5, MDBootsrap, WebProgrammingUNPAS by Sandika Galih for helping me to build my very first website !!
- Login and Register for admin and superadmin
- Visitors can view the mosque's financial statements
- Superadmin account for managing admins
- Superadmin can manage admin accounts and financial report data
- Admin can only manage financial report data
- Update Password features for superadmin account and admin account
- Make sure that you have already installed all the website development requirements above.
- Download this project file and unzip it wherever you want.
- Or you can use git bash with
git bash hereto the specified folder and start cloning this repository with this commandgit clone https://github.com/ImperFecti/ranMa.git. - Copy and paste
envfile and rename it to.envand then paste this code to set the database.
# ENVIRONMENT
CI_ENVIRONMENT = development
# APP
app.baseURL = 'http://localhost:8080'
# If you have trouble with `.`, you could also use `_`.
# app_baseURL = ''
# app.forceGlobalSecureRequests = false
# app.CSPEnabled = false
# DATABASE
database.default.hostname = localhost
database.default.database = masjid
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306
- To import the database, go to
phpmyadminand create a new database namedmasjid. - In
phpmyadmin, select themasjiddatabase you created and then select import. - Import the database named
masjid.sqlinside directory fileAPPPATH\app\Database. - This website is currently using
http://localhost:8080/from spark. To start the localhost with spark, run this commandphp spark servefrom your terminal to turn on the localhost. - If you want to develop this website using XAMPP you can change the baseURL in
App.phpand make sure the project file is saved inhtdocs.
If you use the database that I have provided, you can use the admin account that has been registered below:
- Username
superadminpasswordletslogintosuperadminaccount - Username
adminpasswordletslogintoadminaccount - Username
admin2passwordletslogintoadminaccount
- Run
composer updatefrom the terminal to update the dependencies with composer. - After the update is complete, you can find folder named
myth\authinsideAPPPATH\app\Vendorand start setting up this library. - If you cant find the library inside
Vendor, try to run this command inside terminal
composer require myth/auth
- Find
Auth.phpinsideVendor\myth\auth\Config\and change the variable below
Change value $defaultUserGroup variable to:
public $defaultUserGroup = 'pelanggan';
Change value $views variable to:
public $views = [
'login' => 'Myth\Auth\Views\login',
'register' => 'Myth\Auth\Views\register',
'forgot' => 'Myth\Auth\Views\forgot',
'reset' => 'Myth\Auth\Views\reset',
'emailForgot' => 'Myth\Auth\Views\emails\forgot',
];
Change value $activeResetter variable to:
public $activeResetter = null;
Change value $allowRemembering variable to:
public $allowRemembering = true;
Change the value variable '$rememberLength' to whatever you want:
public $rememberLength = 30 * DAY;
Create new issue for this repository or you can try to contact my email / instagram / twitter
I realized that this repository is still not perfect and not finished yet. If u have an idea to improve this repository, Fork this repository page to create your own copy of the repository under your GitHub account.