Message board web app built with Java Servlet and JSP.
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~/message-board/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/message_board_war/
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 message-board:war
- Run the new Tomcat configuration and navigate away!
- Go to
~/src/main/webapp/WEB-INF/classes/example-MessageBoard_en_US.properties
- Copy the contents of this file, create another file in the same directory called
MessageBoard_en_US.properties
, and paste the keys you coped in this new file - Fill the values for the keys
This project uses MySQL as its database management system.
To have a local instance of the database, do the following steps:
- Install the pre-requisites:
-
Open your terminal and log into your MySQL command-line client:
mysql -u root -p
-
Run schema found in
db/schema.sql
-
Replace
DB_PASSWORD
insrc/main/java/db/DBConnection.java
with the password you set for your MySQL Server in the installation process
For more help or information, check out this resource with SQL demos.
Member | @GitHub |
---|---|
Dina Sadirmekova | @dinasadir |
Miguel Jimenez | @mjimenez98 |
Nicolas Zito | @z1to |
Saima Syed | @CoBatool |