novaweb - Main project directory
novaweb**/src** - Directory for all source code
novaweb/src/main**/java** - Directory for all Java source code
novaweb/src/main**/webapp** - Directory for all web source code
docker - Directory for docker files
This project uses a dependency manager tool known as Maven. Maven allows you to define configurations within an XML file that can automatically be shared with other developers, ensuring that each developer's environment is setup just like every other developer's environment. Maven takes care of importing all JARs for you automatically (such as JDBC Connector).Maven also allows you to use any IDE that supports importing Maven based projects. Eclipse and IntelliJ allow you to import Maven projects.
To setup your local development environment for NOVA, you'll only need to configure your Tomcat server after you import the project. That's it. The instructions below are for Eclipse, but could be extended to IntelliJ.
-
Clone this repo to your local machine.
-
Open a new workspace in Eclipse. Ensure you create a workspace folder in a folder different from the repo
-
Choose Import projects...
-
Choose Maven -> Existing Maven Projects
-
Browse for the cloned repo. Make sure it is selected and click Finish
And you're done. Now you just need to setup your local Tomcat server. -
Choose File -> New -> Other
-
Search for Server
-
Under server type, select Tomcat v8.5 Server
-
Browse for the directory where Tomcat v8.5 is located
-
Click Finished
-
Right click on the project directory, choose Maven -> Update Project -> OK
- novaweb/src/main/resources/config/hibernate.cfg.xml.example - You'll need to copy this file to the same directory and rename it to hibernate.cfg.xml.private. Then, change the required lines in order to connect to the database.
At this point, you should be able to run the project on your local Tomcat server you configured earlier. In the Run As menu, choose Run on Server. Then choose Finish.