Quiz Plus

An ultimate solution for Quiz/Exam/Survey


Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, feel free to email me.

Quiz Plus is a web application / platform for Online Assessments, tests, surveys, quizzes and exams. It’s best suited for the corporate sector, admissions management, online evaluations and skills assessment for the educational institutions, companies, corporations and agencies.

 

For Windows Server with IIS & Mysql

 

For Linux Server with Nginx & Mysql

Here is some resourses so that you can find more detail about above installations-

 

Windows Server

export default{
    hostname:'https://quizplusapi.sangibproject.com'
}

Now you need to copy the contents of Client project to a physical path on server and open another site with Host name as quizplus.sangibproject.com. 

 

Linux(Ubuntu) Server

                 -> sudo mkdir /var/www/QuizPlus.Api

             Now it's time to configure nginx, open a config file,

                -> sudo nano /etc/nginx/sites-available/quizplusapi.sangibproject.com

             Place the below contents and save that file.

server {

    listen        80;
    server_name  quizplusapi.sangibproject.com;
    location / {
        proxy_pass         http://localhost:5002;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection keep-alive;
        proxy_set_header   Host $host;
        proxy_cache_bypass $http_upgrade;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
  }
}

             Now execute below command.

               -> sudo ln -s /etc/nginx/sites-available/quizplusapi.sangibproject.com  /etc/nginx/sites-enabled/quizplusapi.sangibproject.com

 
Let's create a service now to run your Api,
 
               -> sudo nano /etc/systemd/system/QuizPlus.Api.service
 
Place below contents and save that service
 
	[Unit]
	Description=Api for QuizPlus App

	[Service]
	WorkingDirectory=/var/www/QuizPlus.Api
	ExecStart=/usr/bin/dotnet /var/www/QuizPlus.Api/QuizplusApi.dll
	Restart=always
	# Restart service after 10 seconds if the dotnet service crashes:
	RestartSec=10
	KillSignal=SIGINT
	SyslogIdentifier=QuizPlus.Api
	User=ubuntu-user
	Environment=ASPNETCORE_ENVIRONMENT=Production
	Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
	Environment=ASPNETCORE_URLS=http://localhost:5002

	[Install]
	WantedBy=multi-user.target
 
 
Notice, the User is set to 'ubuntu-user' , Chnaged that by your linux user which has full permission on the app directory.
 
  • Now, Open Client project from Project folder and set that 'https://quizplusapi.sangibproject.com' on hostname to config.js file.

export default{
    hostname:'https://quizplusapi.sangibproject.com'
} 

Now you will need to create a directory named QuizPlus.Client on your Linux server. Execute below command on your linux terminal to create that directory then copy the contents of Client directory to this (/var/www/QuizPlus.Client) path.

                 -> sudo mkdir /var/www/QuizPlus.Client

Next, open a config file,

                -> sudo nano /etc/nginx/sites-available/quizplus.sangibproject.com

Place the below contents and save that file.

server {
    listen      80;
    server_name quizplus.sangibproject.com;
    charset utf-8;
    root    /var/www/QuizPlus.Client;
    index   index.html;
    #Always serve index.html for any request
    location / {
        root /var/www/QuizPlus.Client;
        try_files $uri  /index.html;
    }
    error_log  /var/log/nginx/vue-app-error.log;
    access_log /var/log/nginx/vue-app-access.log;
}

             Then execute below command.

                -> sudo ln -s /etc/nginx/sites-available/quizplus.sangibproject.com  /etc/nginx/sites-enabled/quizplus.sangibproject.com

 
  • Now it's time to import the database file to your Mysql database. You will find a database on DB folder.That's all for linux server.

 

Now let's end by executing below commands on linux terminal
              -> sudo apt-get install -y libgdiplus
              -> sudo systemctl enable QuizPlus.Api
              -> sudo service QuizPlus.Api start
              -> sudo service mysql restart
              -> sudo service nginx restart 
 
That's all for linux server.

For Super Admin, Username: admin@quizplus.com  Password: abcd1234

To find more detail you can browse this link (https://stripe.com/docs/testing)

This project currently configured with Mysql DB but you have more database options. You can use Sql Server, Postgresql, Oracle and Sqlite. If you want to use one of them, let me know i will help you for that with free of cost.

Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. I'll do my best to assist. If you have a more general question relating to this script you may also comment directly on product comment section.

Sangib Kumar Saha