Skip to content

About

A Jakarta EE 10 web application running on Open Liberty featuring movie management, user reviews, authentication, and real-time WebSocket chat.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Movie Library JEE

A modern, full-stack web application built with Jakarta EE 10 and running on Open Liberty. This project demonstrates a complete enterprise Java architecture for managing a movie collection, user reviews, and real-time communication.

🚀 Features

  • Movie Management: Browse, view details, and manage a collection of movies with rich metadata (posters, directors, genres).
  • Review System: Users can rate and review movies. Includes optimistic locking protection and comprehensive validation.
  • User Authentication & Authorization:
    • Role-based access control (Admin/User).
    • Custom form-based authentication.
    • Secure password hashing (PBKDF2).
  • Real-time Chat:
    • WebSocket-powered chat interface.
    • Global channel for all connected users.
    • Private messaging between users.
    • Live online/offline status indicators.
  • Internationalization (i18n): Full support for English and Polish languages, switchable at runtime.
  • Modern UI: Responsive design using MDB UI Kit (Bootstrap 5) and FontAwesome icons.
  • Data Initialization: Automatic population of the database with sample movies, users, and reviews on startup.

🛠️ Tech Stack

  • Backend: Java 17, Jakarta EE 10 (CDI, EJB, JPA, JAX-RS, JSF/Faces, WebSocket, Bean Validation, Security)
  • Server: Open Liberty
  • Database: H2 (In-memory)
  • Frontend: Jakarta Faces (JSF), MDB UI Kit (Bootstrap 5), HTML5, CSS3
  • Build Tool: Maven
  • Utilities: Lombok

📋 Prerequisites

  • Java JDK 17 or higher
  • Maven 3.8+

🚀 Getting Started

1. Clone the repository

git clone https://github.com/varrios/movie-library-jee.git
cd movie-library-jee/movie-library

2. Build and Run

This project is configured to run with the Liberty Maven Plugin.

# Start the server in dev mode (hot reload)
mvn liberty:dev

Once started, the application will be available at: http://localhost:9080/movie-library/

3. Stop the server

Press Ctrl+C in the terminal where mvn liberty:dev is running, or run:

mvn liberty:stop

🔑 Default Credentials

The application initializes with the following demo users:

Role Username Password
Admin admin admin_admin
User john_doe 123123
User alice alice_000

Note

The database is in-memory (H2). Data is reset every time the server restarts.

📂 Project Structure

movie-library/
├── src/
│   ├── main/
│   │   ├── java/lg/movielibrary/   # Java Source Code (Controllers, Services, Entities)
│   │   ├── liberty/config/         # Server Configuration (server.xml)
│   │   ├── resources/              # i18n properties, JPA config
│   │   └── webapp/                 # Web Resources (XHTML views, CSS, JS, Images)
│   └── test/                       # JUnit Tests
├── pom.xml                         # Maven Project Configuration
└── README.md                       # Project Documentation

🌍 Internationalization

The application supports English (EN) and Polish (PL).

  • Language selection is available on the Home Screen.
  • The interface automatically adapts dates, numbers, and text messages.

💬 Real-time Chat

To test the chat functionality:

  1. Open the application in two different browsers (or one in Incognito mode).
  2. Log in as john_doe in one and alice in the other.
  3. Navigate to the Chat tab.
  4. Send messages to "Everyone" or select a user from the list for a private conversation.

Developed by Lucjan Gackowski

About

A Jakarta EE 10 web application running on Open Liberty featuring movie management, user reviews, authentication, and real-time WebSocket chat.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages