0% found this document useful (0 votes)
35 views13 pages

OS PRO Cpanel Deploy Guide

Installation Guide: Sub-Domains

Uploaded by

George Ray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views13 pages

OS PRO Cpanel Deploy Guide

Installation Guide: Sub-Domains

Uploaded by

George Ray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Installation Guide: Sub-Domains

STEP 1

Create Frontend Sub-domain

1. Go to your cpanel and find Domains or Subdomain;


2. Create a Subdomain for frontend
a. Example : erpos.osapp.net
STEP 2

Create Backend Sub-domain

3. Again go to Domains or Subdomain;


4. Create a Subdomain for backend
a. Example : api.erpos.osapp.net
Installation Guide: Backend
STEP 1

Setup Database

5. Go to your cpanel and find MySQL Databases;

6. Create a database

7. Create a user for database


8. Add user to database;

9. Give all permission;


STEP 2

Upload backend zip file to cpanel

1. Go to your computer source code and zip compress the main-file.


2. Go to File Manager of your cpanel find your domain or subdomain folder

3. Click on Upload .
4. Now Select The Backend-Zip file, and Upload.

5. Now Extract the file:


a. Select the file you wish to uncompress
b. Hit Extract icon
c. Or right-click on the file and use Extract option
d. Define the path you wish to extract the file to
e. Once done, hit Extract File(s)
6. Edit .env file and Add your database informations
a. Navigate to the folder where the file is located.
b. Click on the name of the file.
c. Click on the Edit icon. This will open the Edit window.

d. Click Edit. This will open a new window with the content of the file
displayed. Add your database information as we did.

e. When ready, click Save Changes on the top toolbar.


7. Again go to Cpanel Dashboard and find terminal :

If you cannot find the Terminal please contact your hosting provider to give
you this advance access or you can use the database.sql file we have
provided with source code.

How to IMPORT SQL? Watch this: YouTube Tutorial


8. It will open terminal for you.

9. Change the directory to your domain/ sub-domain folder where you have
uploaded your files with; command : cd yourBackendDomainName
10. Now navigate to your folder where you have uploaded your files with;
a. Type command: php artisan key:generate
b. Type command: php artisan migrate:fresh

It will create the required database table and data in the Mysql database that you have
installed previously.

c. Type Command: php artisan db:seed

Your admin and login data will be generated in this step.

11. Everything is ready now visit your backend url to see the swagger documentation.

Please email us if you need any help with using the application. We will assist you as soon as
possible and in most cases within 1 day. Customer satisfaction is the most important thing that
we care about.

Preview:
CPanel Installation Guide: Frontend
STEP 1. Build frontend file from local computer.

1. Go to your computer source code/frontend and open the terminal in that folder.
a. Warning: You have to install the node_modules and all those things from the
upper installation guide.
b. Open .env file and replace the url with your Backend domain name

VITE_APP_API: yourBackendDomain

Example : VITE_APP_API=http://api.erpos.omega.ac

c. Add your Frontend url with port at vite.config.js.


i. Open vite.config.js in an editor.
ii. Find “base”:”yourFrontendDomain”

Example : “base”:”http://erpos.osapp.net”

iii. Save file.

2. Build file:
a. Open your source-code/frontend folder and open terminal or command
prompt
b. Type yarn build to build the frontend file with upper information.
c. It will take some time and it will build a file in the dist folder.
3. Zip and Upload the file.
a. Zip the dist folder with any compressor.
b. Go to File Manager of your cpanel find your domain or subdomain folder.
c. Upload the Zip File, that you have zipped in your local pc under Dist Folder .
d. Now Extract the file:
i. Select the file you wish to uncompress
ii. Hit Extract icon
iii. Or right-click on the file and use Extract option
iv. Define the path you wish to extract the file to
v. Once done, hit Extract File(s)

Now your frontend is also deployed in cpanel.


HOLA! You have installed the OS PRO Software on your computer/machine. Now have
a cup of coffee and enjoy the creation of the Omega Solution team.

Thank you 😃
IMPORTANT NOTE:

● To run the application properly on your Local machine the minimum requirement
is:
○ 64bit operating system
○ minimum 2 GB of RAM
○ Minimum 5 GB of free space on HDD/SSD
○ Minimum Processor Dual core or above or equivalence
● The Xampp server will be running in the background. Don’t stop that.
● Do not close your frontend command prompt window.
● This software runs smoothly in any Windows, Linux-based OS and Mac OS
which meets the minimum requirements stated above.

_______________________________________________________________________

Please email us if you need any help with using the application. We will assist you as soon as
possible and in most cases within 1 day. Customer satisfaction is the most important thing that
we care about.

CONTACT INFORMATION:
Website: Omega Solution
Email: [email protected]
Customer Support: https://support.omega.ac

You might also like