Link: hubung.zulzayn.com
This installation is intended to be used with laragon that comes with preinstall tools needed for the project for local development environment. For other ways the requirement is still the same but you need to configure them yourself.
Just make sure that your Laragon run with below Environment
- PHP >= 7.4 < 8.0
- MySQL 5.7
- Apache 2.4
- Node v12
1) Clone
- SSH :
git clone [email protected]:zulwaqarzain96/hubung.git
- HTTPS :
git clone https://gitlab.com/zulwaqarzain96/hubung.git
2) run - composer install
3) run - npm install
4) Copy .env.example file and rename to .env
For database:-
- change
DB_DATABASE=dev_hubung
For Mailing we use SMTP so the attribute should looks like below:-
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=test123
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"
For Firebase Cloud Messaging (FCM) the attribute should looks like below:-
Relative or full path to the Service Account JSON file
-
FIREBASE_CREDENTIALS=fcm-credential/test-2021-firebase-adminsdk-1111-111111111.json
You can find the database URL for your project at https://console.firebase.google.com/project/_/database
-
FIREBASE_DATABASE_URL=https://test-2021-default-rtdb.region-subregion1.firebasedatabase.app/
Lastly, make sure your APP_URL is working for websocket to run locally.
5) run - php artisan key:generate
6) run - php artisan storage:link
7) Create database - dev_hubung
8) run - php artisan migrate
1) Navigate to - /socket/socket-chat
2) Run - npm install
3) Run - npm run dev