Backend Configuration

Firebase Setup & Configuration

Go to https://firebase.google.com/ create your project using the app name click the project setting from project overview dropdown

copy the project ID and web API key to your admin ->settings -> firebase api key

The cron job is very important

open your crontab and paste the code below, make sure you use your project absolute path

* * * * * cd /var/www/html/ride_surd && php artisan schedule:run >> /dev/null 2>&1

Queue Setup(optional)

for sending notifications we need to configure the supervisor setup to run the queue jobs, this is not compulsory but necessary for effective queue processing, follow the setup here

sample laravel-worker file

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/project-name/artisan queue:work --sleep=3 --tries=3
autostart=true
autorestart=true
user=ubuntu
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/html/project-name/worker.log
stopwaitsecs=3600

Setup Cron Job

Introduction

You are almost done and ready to complete your setup,

login http://your-base-url/login

enter your login details

Complete your admin setup

Complete the general settings, smtp, mobile app setting, firebase and map API settings, payment methods and trip settings

Last updated