Server

Connect To Server

Connect to your VPS SSH interface using credentials provided by your hosting provider. Upon entering your server credential into your SSH client you can start installation of Backend side.

Installation

Deployment of server side is based on Docker. Using Docker helps with easier installation, less chance of OS configuration affecting application, easier updates to newer version and many other benefits continues Deployment gives.
Some hosting provide VPS with Docker preinstalled. For example DigitalOcean Droplets. Install Docker step can be skipped if you get your hosting with docker preinstalled.

Install Docker

In order to install Docker & Docker Compose you can rely on documentation Docker provides based on your server's OS & Distro:
Install Docker Engine
Docker Documentation
And After Docker Engine being installed Install Docker Compose:
Install Docker Compose
Docker Documentation

Run backend

Run following command:
1
wget http://uploads.ridy.io/docker-compose.yaml && docker-compose up -d
Copied!
After a few seconds docker starts up all services required and you should be able to access dashboard from your IP Address and port 8080.

Configuration

The dashboard address would be your server address with port 8080 by default. (eg. http://x.x.x.x:8080/)
In case server doesn't responds to port 8080 (Can't be opened in browser), The reason could be server's firewall. To fix this refer to FAQ.
In browser after logging in with User Name: admin & Password: admin you will presented with a wizard which you will need to fill with required keys to run the App.

Wizard

Purchase Code

You will need to put your purchase code for validation. This was delivered to you at email after you made your purchase from codecanyon.

MySQL

You can skip this step with values it has as is.

Google Maps API Key

This API key is to be retrieved From Google Developers console. For Server API Key Distance Matrix API API being enabled from Library is required and for dashboard key Google Maps Javascript SDK is required.
Make sure billing account is enabled on your Maps Console. This is very important for app to function correctly.

Firebase Admin SDK

Both driver & rider app need separate firebase projects. Once two firebase projects created go to Project Settings then under Service Accounts use Generate Private Key button to retrieve private key. You would also need to enter db url retrieved from this page into respective field.
With this being done on both projects your setup will be done. Give backend a few seconds to set itself up then hit Go To Login and login with default admin & admin credentials πŸŽ‰
If after hitting Login it doesn't works or shows error the reason would be incorrect Configuration inputs especially Firebase private key. Make sure the file is downloaded and uploaded according to above picture.
Last modified 3mo ago