Hey there, We are happy to see you as our valuable customer of Vegi – The Ultimate Grocery – Food – Milk Ordering app. Here is the easy documentation to set the app and ready to launch. Please follow all the instructions carefully and don’t skip any step. Feel free to contact us if you face any problem while set-up.
PHP 8.0 and above and it will work on any kind of hosting
Linux based hosting
memory_limit should be 120M
If you face any issue in video upload or it takes time in uploading video to the server that might be because of your server. Sometimes server gives this error if you check your error log file
The Allowed memory size of 33554432 bytes exhausted (tried to allocate 15756752 bytes)
If you see this error then you would need to upgrade your server or increase PHP memory limit by going into php.ini file. you need to google about where this file is. This file resides in different locations in different servers
Extract the folder you downloaded and open the folder
Open it and find database.sql file
Then open your cPanel provided by your web hosting provider.
Click the MySQLDatabase option under DATABASES section and create database for your app
Create a Database User
Assign users to the database
After that search for phpMyadmin option under the database
Then system will redirect you to the phpMyAdmin where you will be able to find the database we just created
Click on that database
Then find the import button on the Top bar and click on it
Then click Choose File button and load the database.sql file there you got from the Extraction of folder
And click the Go button at bottom of the page
Now Database is ready to use
Now come back to the extracted folder and then extract vegi_backend.zip file
Open that extracted folder and then find .env File and then go to line number 5 & 6 (line numbers may vary sometimes)
Change the value as shown and described below
DB_DATABASE=database
DB_USERNAME=database_user
DB_PASSWORD=”database_password”
APP_URL and image : Replace the https://yourdomain.com/ to Your Domain Targeted Directory. See the example below.
APP_URL=https://yourdomain.com/
image=https://yourdomain.com/
Now go to the path: public/asset/script/language.js
Change your back end domain on the first line of that file. as shown in the below image and example.
var dominUrl = "http://yourBackendDomain.com/";
Go to the firebase website, here
Check the video below and follow the steps to create a firebase project
Go to your firebase project dashboard and follow the steps given below in the image
Go to the settings by clicking that small setting icon shown below
Select the Cloud Messaging option
Copy that server key from there as shown above the number 3
Go to .env file of the backend project again [line 11,12] and make the changes like below. (Line numbers may vary, you can search in the file to find the fields)
NOTIFICATION_TITLE=Your Notification Title
FCM_TOKEN="Your Firebase Server Key"
Create an account in Stripe (https://dashboard.stripe.com/login)
Log in with your stripe account.
Go to the Developers section
Click on API keys under the Developers section
Copy Stripe Secret Key and paste in .env file show as below.
Don't forgot to save it.
Make the zip of vegi_backend folder
Upload that folder to your domain targeted directory and extract it there
Make sure that your targeted directory has the project files directly, and not wrapped in a folder
Cheers ! Now try accessing your domain, the admin panel should be live there on your domain
Now we need to link the storage to access the images in the app. This step is a step provided by Laravel
Go this location : public/ and check if there is storage folder there
If it is, then delete it
Now Go to the terminal by searching terminal on your cPanel
Go to the backend project location using cd command like below
cd public_html/backend_folder
And then run below command at that location on terminal
php artisan storage:link
Now web setup is completed and let's collect some credentials for the app setup
Admin panel:
http://yourdomain.com/
User: admin Password: admin123
Api Url
http://yourdomain.com/api/
API Key : 123
ItemBaseUrl
https://yourdomain.com/public/storage/
Prefixes : Changing the prefix or Orders and Complain IDs. Like Currently orders IDs are being generated like VEGI5676PK. So there is a “VEGI” at the starting of the ID and the same will be for complains.
Those things are dynamic and can be changed from backend admin panel.
Go to the settings section in the admin dashboard and change the values like shown in the image below
In that settings page, you can change all the required values listed below which is available in the website like App store app URL, etc. Please check the list below, and find them on the settings page and update accordingly.
App Name
Slogan
Shipping Charge
Currency Of the Platform
Maximum Quantity Of Product Unit per Order
Support Mobile Number and Email
Play store app URL and App store app URL
Terms of Use
Privacy Policy
About Us URL
Contact US URL
Instagram, Facebook, Twitter and Linked In URLs
Short description of the platform
Long description of the platform
Change the required links and then click on the same button
Gmail: retrytech@gmail.com
Skype : RetryTech