The goal of this project is to implement a web app in Java that provides an interface with a chat window for users to post, get and delete messages.
This project is developed using Java 8 update 261 jre-8u261
- Download the Java Runtime Environment (JRE) from Oracle for your operating system
Tomcat is needed to run the Java servlets and launch the web app locally. This project uses Tomcat 9.0
- Go to Tomcat's download page
- For macOS, download the tar.gz, unzip it and save the folder somewhere (you will need it later)
-
Clone this repo using HTTPS, SSH, GitHub Desktop or any other method
-
Open IntelliJ IDEA, select
Open Project
and choose~/chat-web-app/pom.xml
. When the dialog box appears selectOpen as project
. This will make IntelliJ automatically build the project for you. -
On IntelliJ's topbar, go to Run -> Edit Configurations
Add Tomcat Server and set the following options:
- Application Server: Find the path of the Tomcat server you previously downloaded. If do not have Tomcat installed, read the section above so you are able to finish your setup
- URL:
http://localhost:8080/chat_web_app_war/chat
Before you hit apply, above this button there will be a message in red saying No artifacts marked for deployment
.
Click on Fix
and select chat-web-app:war
- Run the new Tomcat configuration and navigate away!