JForum is a forum/message board web application developed in Java EE
Users can create an account, sign in and manage their own profile with JForum,
add and message their friends, as well as view, create and reply to threads
- JDK 1.8+
- NetBeans 8.1 + EE
- Glassfish 4.1
- MySQL 5.7
- MySQL Connector/J
- Hibernate 4
For a comprehensive installation guide see the InstallGuide
- Clone the jforum repository
git clone https://github.com/kyleruss/jforum.git
-
Import the project in NetBeans
Select the repository directory to open it as an enterprise application
There should be two components:jforum-ejb
andjforum-war
-
Create the jforum database
First connect to MySQL, create the database then exit
mysql -u root -p
CREATE DATABASE jforum;
exit
- Import the jforum database tables using the migration script
Themigration.sql
script can be found in theinstall
directory
mysql -u root -p jforum < migration.sql
-
Add the provided
domain.xml
to your Glassfish configs
Copyinstall/domain.xml
into<Glassfish Directory>/glassfish/domains/<your domain>/config/
-
Set the database username and password properties in your JDBC resource Start your Glassfish server and go to your admin controls (typically
localhost:31318
)
SelectJDBC -> JDBC Resources -> jdbc/mysql
and add theusername
andpassword
properties
where the values correspond to your MySQL database username and password -
Deploy the application
Start the Glassfish server and then right click the jforum enterprise application and selectdeploy
JForum is available under the MIT License
See LICENSE for more details