System Operations: Windows or Unix Base
PHP: >= 7.2.11
MySQL: 5.6
Clone the project
clone into directory C:\Apache24\htdocs
git clone https://gitlab.esb.co.id/custom/starbucks/starbucks-gr-portal.git
Vendor
Download zip vendor and extract zip to directory starbucks-gr-portal/
Configuration
Create the following file for local environment configuration:
config/db.php
<?php
$username = 'root';
$password = '';
$params = require __DIR__ . '/params.php';
return [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=esb_gr',
'username' => $username,
'password' => $password,
'charset' => 'utf8',
// 'enableSchemaCache' => true,
// 'schemaCacheDuration' => 3600,
// 'schemaCache' => 'cache',
],
'db_sap' => [
'class' => 'yii\db\Connection',
'dsn' => 'sqlsrv:server=PTKD11\SQLEXPRESS2014;Database=zddb',
'username' => 'sa',
'password' => 'userptkd',
'charset' => 'utf8',
// 'enableSchemaCache' => true,
// 'schemaCacheDuration' => 3600,
// 'schemaCache' => 'cache',
],
];
Create 1 new schema
Open MySQL Workbench and create 1 schema:
- esb_gr
Migration
Run Migration in directory starbucks-gr-portal/
php yii migrate
Run the project
Run with localhost and php version >= 7.2.11 and adjust the port to the port of the php version
http://localhost:82/starbucks-gr-portal/web/site/login
Login
-
User
Username : administrator
Password : admin
-
User PI
Username : erwanom
Password : abc123
Version | Date | Update |
---|---|---|
1.0.0 |
2022-03-01 |
|