This project consists the intial R0 architecture spike (software prototype) of the IoTBay webstore application.
The project has been packaged into a .war file - the web application that can be deployed on jsp containers and serverlets. Alternativley, the project can be launched through supported IDEs (e.g. Apache NetBeans).
On a Windows machine, the .war file can be renamed to .zip. Then, by extracting the zip folder, source files are available for viewing. This includes the application model (java classes), JSP pages, and supporting css (bootstrap framework and css customisation).
Note, the directory structure should be preserved to ensure that the css files are loaded correctly.
- Create a new Java Database
- Record the database name, username, password, and connection string.
- Start the database
asadmin start-database
or via other methods E.g NetBeans - Execute the provided database scripts (creation and insertion scripts found within
web/db_scripts
). - Within the DBConnection.java file (within the DAO package), update the information in the connection information. Ensure that the URL, username, and password information match with the database details created.
- You must have Glassfish Server installed along with Java EE 8 on your machine
- Open the folder in which your glassfish installation is located (on a Windows machine - typically in C:\Users<your user name>\GlassFish_Server\bin)
- Using a terminal, start the glassfish server
asadmin start-domain
- Deploy the war file
asdmin deploy path/to/IoTBay.war
- Open the application by navigating to 'http://localhost:8080/IoTBay/' in a browser
- To stop the server, run
asadmin undeploy IoTBay
,asadmin stop-domain
and finallyasadmin stop-database
.