Installation

Installing on Windows

Skip this section if you want to install on your hosting server.

For local Pc installation Download and install the Xampp server from apachefriends.org. The link for the download is given below. Make sure to download PHP version greater then or equals to 7.4.

https://www.apachefriends.org/download.html

After installing xampp server create and new folder inside htdocs folder of xampp installation directory in our case lets create a pos folder inside htdocs.

At this stage open xampp control panel and start Apache and Mysql. Click on the checkbox next to apache and mysql to add both into window services this make sure that whenever you restart pc you don't need to start apache and mysql manually.

Xampp Control Panel

After starting both services as shown in the above image close the xampp control panel, Process will be running in the background.

Now navigate to the newly created folder inside htdocs directory. In our case htdocs/pos folder. See the blow image for reference.

xampp-folder

Navigate inside the pos folder and paste the files located inside the App folder that you have downloaded from envato purchase. See the image below for the reference of app structure.

app-structure

Open a new tab in your browser and open phpmyadmin by using the url given below. Create a new database name medix_v4 as shown in the reference image below.

http://localhost/phpmyadmin
phpmyadmin_medix

After creating database in phpmyadmin . Copy the database from the downloaded folder and import inside newly created database in our case it was medix_v4.See below image for the reference.

phpmyadmin_medix

Choose the database and click on the import button on phpmyadmin.

Now close this tab and navigate to the app installation directory inside htdocs/pos/backend/.env folder of xampp server and edit the .env file See the image below for the reference.

 Xampp/htdocs/pos/backend/.env 
env-spantiklab

Left click on .env file and edit this file . Set the following variables DB_DATABASE,DB_USERNAME,DB_PASSWORD

Set DB_DATABASE name that your have create in phpmyadmin leave DB_USERNAME and DB_PASSWORD to default, if you have not created. The default user name would be root and password would be empty.In this case we have left it empty See the below image for the reference.

xampp-env-spantiklab

Now open a new tab on your browser and type the url of your sub domain.If everything is good you will be able to see the installation screen of the app.

Installing on Hosting Server

If you are planning to install the app on your domain then follow the instructions given below

Login into your cpanel account and create a sub domain

sub-domain-app

After creating a sub domain go to the file manager and navigate inside into the newly created sub domain.In this case we have created a new sub domain name medixv4.spantiklab.com

Copy files located inside the App folder that you have downloaded from envato purchase. See the image below for the reference of app structure.

domain-files-spantiklab

Now lets create a database by navigating into Databases section of your cpanel home screen.

Click on Mysql Databases

Now create a new database in this case we are creating a database name medixv4 see the image below for the reference

create-db-spantiklab

After creating a database, create a new user for the database we just have created above. Copy the user name and password somewhere, we are going to use this later on.

create-user-spantiklab

Now assign the newly created user to the database

assign-user-spantiklab

Now lets create a database by navigating into Databases section of your cpanel home screen.

Click on phpMyAdmin

Now you will be able to see the newly created database

php-my-admin

After creating database in phpmyadmin . Copy the database from the downloaded folder and import inside newly created database in our case it was medix_v4.See below image for the reference.

phpmyadmin_medix

Navigate to the sub domain inside file manager . Edit file located inside your sub domain/backend/.env . See the image below for the reference.

 Your sub domain/backend/.env 

Choose the database and click on the import button on phpmyadmin.

env-spantiklab

Left click on .env file and edit this file . Set the following variables APP_URL,DB_DATABASE,DB_USERNAME,DB_PASSWORD

Use the same user name and password that we just created previously and set the App Url. See the below image for the reference.

env-file-spantiklab

Now open a new tab on your browser and type the url of your sub domain.If everything is good you will be able to see the installation screen of the app.