Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benevanio/post-comment-example
O Post and Comment Management System é uma aplicação Java que permite criar posts com títulos, conteúdo e curtidas, além de adicionar e remover comentários. Ideal para demonstrar conceitos de programação orientada a objetos.
https://github.com/benevanio/post-comment-example
acenden backe chat java java8 javafx javaweb jd jdbc-driver mdn-docs mulesoft social-media social-network
Last synced: about 1 month ago
JSON representation
O Post and Comment Management System é uma aplicação Java que permite criar posts com títulos, conteúdo e curtidas, além de adicionar e remover comentários. Ideal para demonstrar conceitos de programação orientada a objetos.
- Host: GitHub
- URL: https://github.com/benevanio/post-comment-example
- Owner: Benevanio
- License: mit
- Created: 2024-05-26T18:16:22.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-26T18:19:04.000Z (8 months ago)
- Last Synced: 2024-12-09T11:09:47.227Z (about 1 month ago)
- Topics: acenden, backe, chat, java, java8, javafx, javaweb, jd, jdbc-driver, mdn-docs, mulesoft, social-media, social-network
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Post and Comment Example
This project is a simple Java application designed to manage posts and comments. The application allows users to create posts with titles, content, and likes, and to add comments to these posts.
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Classes](#classes)
- [License](#license)## Introduction
The Post and Comment Post and Comment Example is a console-based Java application that helps in managing posts and their associated comments. This application demonstrates the use of object-oriented programming concepts such as classes, objects, and encapsulation.
## Features
- Create posts with titles, content, and likes.
- Add and remove comments to/from posts.
- Display post details along with their comments.## Installation
1. Clone the repository:
```sh
git clone https://github.com/yourusername/post-comment-management-system.git
```
2. Navigate to the project directory:
```sh
cd post-comment-management-system
```
3. Compile the Java files:
```sh
javac App.java
```## Usage
1. Run the application:
```sh
java App
```
2. The application will create a sample post with comments and display the post details.## Classes
### `entities.Comment`
Represents a comment on a post.
- `text` (String): The content of the comment.
### `entities.Post`
Represents a post with a title, content, likes, and comments.
- `comment` (Date): The date the post was created.
- `title` (String): The title of the post.
- `content` (String): The content of the post.
- `likes` (Integer): The number of likes for the post.
- `comments` (List): The list of comments associated with the post.### `App`
The entry point of the application, which creates a sample post and adds comments to it.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
---
This readme provides a basic overview of the project, its features, installation instructions, and class descriptions. Adjust the URLs and specific details as per your project repository and license.