Website and admin installation
This chapter covers Source Code Setup, SQL Sample Data, Google Login, Mail Chimp For Newsletter, Facebook Login and One Signal Notification.
Source Code Setup#
From Where to Begin?
Well, after reaching the above-mentioned step, you need to begin with the SourceCode-Laravel.zip folder. Extract the files from the SourceCode-Laravel.zip folder to public_html directory on your server. The extracted files would appear all laravel source code files.
You need to grant the directory permissions 775 to respective directories below.
- public_html/bootstrap/cache/
- public_html/storage/framework/
- public_html/storage/logs/
Now you just need to enter your website domain name like https://your-site.com/install in any browser and an installation wizard would automatically pop up on the screen.
Open https://your-site.com/install
To make the installation process smooth and user friendly, we have come up with a bit more innovative manner of installation where the user would be provided with an installation wizard, user would be required to keep putting the appropriate values in the relevant fields and the installation process would not take more than just a couple of minutes.
After uploading the source code, once we click it, this would open up by default an installation wizard.
The above-given slide with Laravel Ecommerce App title is a welcome note to the user. By clicking on the Next button, the wizard would appear like this
The above mentioned are the dependencies or extensions for the server that are essential components for installation. All the green checks would ensure the presence of all the above mentioned dependencies. In case, if the system doesn’t have any of these dependencies already installed, a red cross mark would appear in the corresponding column of the missing component. So make sure to install all the dependencies and extensions to ensure the smooth running and installation of the app.
By clicking the next, the wizard would ask for the permissions as shown below.
You need to grant the directory permissions 775 to respective directories below.
- public_html/bootstrap/cache/
- public_html/storage/framework/
- public_html/storage/logs/
To grant these permissions. Open your cpanel file manager, locate the above directories and right-click on it, and now click on the change permission and enter the relevant value 775, and click on the change permission botton.
In the same manner, grant permissions to the all folders that is mentioned above.
Once all the permissions are granted, refresh installer page and all three folders would show a green checkmark on correspondent columns. From here click the next button.
In the next step, you need to complete the environment settings wizard.
By clicking the Wizard Text Editor next slide will show up as given below
Step 1) Give any name to your Website as you like for instance, Laravel 1 or XYZ.
Step 2) From development mode that carries the following option(s)
Local
Select any of the above mode(s) according to your requirement.
Step 3) In App Debugging section, there are two further options that are
True
False.
By clicking the true, all the errors would be shown
By clicking the false, no errors would be shown.
Step 4) In Log Type section select debug.
Step 5) In Website URL section, paste your website URL and click on the database on the bottom of the wizard.
In the next wizard section, you will be required to enter your database information.
Note: In any case, if you need to change your .env settings or need to change the production or any other mode, you can go directly do in /public-html/.env file.
To begin with this, you need to create an empty database first in your PHPMyAdmin, enter all of the details of that empty database in the above wizard, and click on the application on the bottom of the wizard.
Note: Your predefined and created database MUST be empty.
Make sure to also configure your mail settings in the wizard shown above.
In the final phase, enter your purchase code details and press submit. Installer will run migration and seeder and setup all database tables/views in given database.
Your website will be live on following link.
Admin:
https://your-site.com/admin/login
Owner Login: username: owner@email.com password: 123
Admin Login: username: admin@email.com password: 123
Manager Login: username: manager@email.com password: 123
Purchaser Login: username: purchaser@email.com password: 123
Accountant Login: username: accountant@email.com password: 123
Data Entry Operator Login: username: dataentry@email.com password: 123
Biller/POS Login: username: biller1@email.com password: 123
Biller2/POS Login: username: biller2@email.com password: 123
By default laravel website run from public folder, so please make sure your server/domain document root set to public folder.
INSTALLATION WARNING!
We have different environment in development.
Xamp Lamp Wamp (Live server) Cpanel Others
Our laravel installer works perfect on every environment, However some exceptions may occur on environment to environment change .
For Example
Sometime user provide wrong credentials for database, which gives an exception. our laravel installer is handling this exception in a way, It shows message to user to restart its local server if user is providing wrong credentials once.
if user face session expire (it occurs due to providing wrong credentials many time) page after providing wrong credentials on live server, user must clean cache on live server.
SQL Sample Data#
This article will help you to import Sample SQL data. Consider these instruction to get Sample data and import into your website.
Please take backup first if you have added any products data. Because this restore demo content will delete your old data.
Open https://your-site.com/admin/managements/backup
Download our Sample SQL Dump From here.
Upload Sample Content Zip file by using below link.
Open https://your-site.com/admin/managements/import
Google Login#
This allows you to login through your Google credentials. Here is the official link with the detailed google integration.
After that you need to enable Login from back end and also put the Google app Id , Google app secret and google app URL to complete google login process.
For Enable the Social Login Go To Website Settings > Login / Signup
For That use The below link
Open https://your-site.com/admin/website-setting

To enter your Google Credentials use below link. Go To Website Settings >Sociallite Login
Open https://your-site.com/admin/website-setting

Mail Chimp For Newsletter#
This allows you to Subscribe Newsletter for customers. Here is the official link with the detailed Mailchimp integration.
Step 1)Login to your MailChimp account. Under the user drop-down, select the Account.Step 2) Click on Extra->API keys.Step 3) Under the Your API keys section, click on Create A Key and copy your API key which you need in a moment. Step 4) Now you have our API key ready.Step 5) After that you need to enable Newsletter from back end and also put the Mailchimp API and Mailchimp Audience ID to complete MailChimp subscription process. You can get MailChimp Audience ID from below link
To enter your MailChimp Credentials use below link.
Open https://your-site.com/admin/newsletter
Facebook Login#
This allows you to log in through your Facebook credentials. Here is the official link with the detailed demonstration of Facebook integration
After that you need to enable Facebook login and also need to put Facebook app id , secret id , Facebook app URL, to complete Facebook login process.
For Enable the Social Login Go To Website Settings > Login / Signup
For That use The below link
Open https://your-site.com/admin/website-setting

To enter your Facebook Credentials use below link. Go To Website Settings >Sociallite Login
Open https://your-site.com/admin/website-setting

One Signal Notification#
You need Firebase account and onesignal account for documentation you can get information from link below.
First of all you need to create a project on FCM then add Firebase to your account to get sender ID using URL below
You can get sender ID after that you can create app on one signal to get App ID using link below
Now avail this feature, put both app ID and Sender ID at back-end make this feature functional.
To enter your Onesignal Credentials use below link. Go To Bussiness Settings > Notification
Open https://your-site.com/admin/bussiness-setting
