This commit is contained in:
2022-11-28 13:24:51 +01:00
commit 5ec9cbd698
102 changed files with 6487 additions and 0 deletions

25
README.md Normal file
View File

@@ -0,0 +1,25 @@
## What is ci4-example-auth?
```
This is simple example of implementation of Authentication with CodeIgniter 4 framework
```
## Installation & updates
```
git clone https://git.jurisic.org/ijurisic/ci4-example-auth.git
cd ci4-auth
composer update
```
## Setup type of database for users (for example sqlite) and Timezone
```
cp env .env
sed -i "/# database.default.hostname = localhost/i database.default.DBDriver = SQLite3" .env
sed -i "/database.default.DBDriver = SQLite3/i database.default.database = database.sqlite" .env
sed -i "/# app.forceGlobalSecureRequests = false/a app.appTimezone = 'Europe/Zagreb'" .env
```
## Init. of application
```
php spark key:generate
php spark migrate
php spark serve
```