This commit is contained in:
25
README.md
Normal file
25
README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user