A Java project that incorporates all the main pillars of object-oriented programming, featuring a UI built with JavaFX.
To run this program, you must have a PostgreSQL database running on your machine.
Once the database is set up and running, you need to edit line 37 of the code with your database credentials:
public sistema() { con = DBFun.connectToDb("DatabaseName", "postgres", "DatabasePassword"); }The project was developed using Java 20.
WeNews is designed to function as an online news portal with the following capabilities:
✅ User Management
- Register and create new accounts
- View user profile information
✅ News & Content Access
- Free users can read a partial version of news articles
- Subscribed users have full access to all news articles
- Users can comment on news articles
✅ Content Creation & Editing
- Journalists can write news articles
- Writers can publish opinion articles
- Editors have permissions to edit any article or news post
✅ Subscription System
- Users can purchase a subscription to access full content
- Subscriptions can be renewed within the system
Before running WeNews, make sure you have:
- Java 20 installed
- PostgreSQL database running
- JavaFX dependencies set up in your project
git clone https://github.com/yourusername/WeNews.git
cd WeNews- Open PostgreSQL and create a new database
- Update line 37 of
sistema.javawith your database credentials
mvn clean install
mvn javafx:runOr if using an IDE like IntelliJ IDEA, simply run the main class.
- Implement API support for external news sources
- Enhance the subscription system with multiple payment methods
- Improve UI/UX with additional JavaFX animations
If you have suggestions or improvements, feel free to open an issue or submit a pull request! 😊





