Guide to Install Our Quizix on VPS Automated Setup
Upload admin and deployment project to Virtual Server form Local PC - RUN
To upload the zipped admin
, client
and deployment
files to server you need to run the below command form your quizix project root.
Please follow the below steps,
- Extract the quizix package that you download from CodeCanyon.
- After that you see two zip files called 'core.zip' and 'deployment.zip' and documentation folder.
- Now extract the core.zip file to the core folder.
- now you'll get two zip files called
admin.zip
andclient.zip
on core folder.
As You can see the folder structure like below,
quizix
├── documentation
├── core
│ ├── admin.zip
│ ├── standalone-client.zip
│ └── static-client.zip
├── local_deployment
└── deployment.Zip
while running below command will asked for enter your server username
and ip address
by entering and a successful connection will also asked for enter your admin.zip
, client.zip
and deployment.zip
.
Ensure that have two domain for your quizix project, one for admin
and another for client
project.
Recommended like admin: app.YOURDOMAIN.COM
and client: YOURDOMAIN.COM
. Which is admin domain is your subdomain and client domain is your main domain.
Now start the deployment script from your quizix project root:
- Open a terminal window.
- Connect to your server and deploy the 'admin' and 'client' and 'deployment' files to your server.
- Run the below command from your quizix project root
bash local_deployment/deployment.sh
Note: When uploading or unzipping the files to your server it will tell you that Enter your password
on every time. Which is your server root password for your server and you should enter your server root password.
After that you will see the below message on your terminal if you have successfully uploaded the files to your server,
Server Environment setup script - RUN on server
Access the server and run the below command
ssh YOURNAME@YOURSERVERIP
Example: ssh root@000.000.000.000
Then run the below command
bash /var/www/quiz/deployment/nodesetup.sh
Nginx Setup And Settings - RUN on server
zx /var/www/quiz/deployment/setenv.mjs
Backend build - RUN on server
zx /var/www/quiz/deployment/backendbuildscript.mjs
After successfully build the backend then serve the application from your main domain app.YOURDOMAIN.COM
Follow the graphical instruction from the documentation.
Frontend build script - RUN on Local PC
Run the below command from your quiz project root
zx /var/www/quiz/deployment/frontendbuildscript.mjs
Conclusion
Congratulations! You have successfully installed our Quizix on your VPS. If you have any questions, please contact our support team.