-
Notifications
You must be signed in to change notification settings - Fork 24
How to Setup WISE: Local Development Environment using IntelliJ IDEA
Hiroki Terashima edited this page Nov 16, 2018
·
3 revisions
(Note: These instructions require an installation of IntelliJ IDEA Ultimate Edition, since it makes use of the Maven, Spring, Hibernate, and Tomcat modules)
- Check out WISE Project
- Open IntelliJ.
- Go to New -> Project from Version Control -> Git
- For "URL", type "https://github.com/WISE-Community/WISE.git". For "Directory", choose a location where you want to checkout the project.
- Hit "clone".
- Follow the rest of the instructions. Choose default settings (no need to specify anything) when prompted. When finished, IntelliJ should open the WISE project in the Project Browser window (usually on the left-hand side). It might take a while for IntelliJ to index the files.
- Right click on pom.xml file and choose "Add as Maven Project". This will make WISE into a Maven project, download maven dependencies, and re-organize the folders.
- Configure settings
- Copy src/main/resources/wise_sample_embedded_tomcat.properties to src/main/resources/wise.properties
- Edit src/main/resources/wise.properties IF NEEDED (you probably won't need to edit anything, but if you run into issues in the future, this may be a place to look)
- Add Run Configuration to IntelliJ
- Click on "Add Configuration" button at the top-right corner of the IntelliJ window. This will open up the Run/Debug Configuration window.
- In the window, click on the "+" button to create a new configuration.
- Choose "Maven" in the list of possible configurations
- Change the name to: "WISE Maven".
- Change the "Command line" to: "tomcat7:run"
- Click "OK" to save and close the window. You should now see "WISE Maven" in the top-right corner of IntelliJ and the Run/Debug buttons should be enabled.
- Click on the Run/Debug button in the top-right corner of the IntelliJ window.
- Open up the Terminal and run "npm run watch-all-site" to compile the site