Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.