Skip to content

Deploying sampleapp zip

AnthonySabbagh edited this page May 30, 2017 · 3 revisions
  • Download the sampleapp.zip file from Software Sources and save it to your computer

  • Extract the zip file.

  • Copy the "sample" folder to the tomcat webapps folder as shown below

https://github.com/uoForms/quickforms3/wiki/images/sampleapp1.png

  • For the sample application to work on your localhost you need to create a resource for your application:
    1. Go to the conf folder inside your tomcat directory, i.e. C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf, and edit context.xml file using your Notepad++ editor.
    2. Add this piece of code inside the <Context> tag
<Resource driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"  maxActive="15" maxIdle="5" 
maxWait="5000" name="jdbc/sample" password="segcourse" type="javax.sql.DataSource" 
url="jdbc:sqlserver://137.122.93.142:1433;autoReconnect=true" username="segcourse" />
  • The above piece of code represents the name of the database you wish to connect your application to, the username and password to connect to it and the url which defines the IP you would like to connect to.

  • Using a browser, navigate to http://localhost:8080/sample to verify it is working. You should see the login page of the sample app as shown below

https://github.com/uoForms/quickforms3/wiki/images/sampleapp2.png

Clone this wiki locally