A simple social media post manager built in Java using JDBC and PostgreSQL. This project was created as a learning tool to practice SQL operations, JDBC connections, and building a clean console-based CRUD app in Java, following the MVC pattern.
- Basic CRUD operations for managing posts
- Interactive terminal menu
- Clean and modular Java code following the MVC structure
- Uses JDBC for direct SQL execution
- PostgreSQL database managed via Docker Compose
- Clear separation of controllers, services, repositories, and entities
- Built-in logging of SQL queries executed (via Hibernate)
- Java 17+
- Maven
- Docker & Docker Compose
-
Clone the repository
git clone https://github.com/wesleybertipaglia/chirpnest.git
-
Navigate to the project directory
cd chirpnest -
Start the database with Docker Compose
docker-compose up -d
-
Build the project
mvn clean install
-
Run the app
mvn exec:java -Dexec.mainClass="com.wesleybertipaglia.Main"
-------------------------------------
🐦 CHIRPNEST POST MENU
-------------------------------------
1. List all posts
2. View post details
3. Create a new post
4. Update a post
5. Delete a post
0. Exit
Choose an option: 1
--- Posts ---
📝 1 wesley
My first post...
📝 2 wesley
Just another post...
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Aqui está um modelo de README adaptado para o seu projeto Chirpnest!