26 lines
713 B
Markdown
26 lines
713 B
Markdown
## 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
|
|
```
|