The Journal Application is a Spring Boot-based web application for managing journal entries. It allows users to create, read, update, and delete journal entries, with MongoDB as the data storage. The application provides a RESTful API for interaction.
The Journal Application is a Spring Boot-based web application designed to manage journal entries. It allows users to create, read, update, and delete journal entries. The application uses MongoDB for data storage and provides a RESTful API for interaction.
- Create Journal Entries: Users can create new journal entries with a title and content.
- Read Journal Entries: Users can retrieve all journal entries or a specific entry by its ID.
- Update Journal Entries: Users can update the title and content of existing journal entries.
- Delete Journal Entries: Users can delete journal entries by their ID.
- Error Handling: Proper HTTP status codes are returned for different scenarios (e.g., entry not found, internal server error).
- Java: The primary programming language.
- Spring Boot: Framework for building the application.
- MongoDB: NoSQL database for storing journal entries.
- Maven: Build and dependency management tool.
- Clone the repository:
git clone https://github.com/your-username/journal-app.git cd journal-app
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
- Base URL:
/journal
- Endpoints:
GET /journal
: Retrieve all journal entries.POST /journal
: Create a new journal entry.GET /journal/{id}
: Retrieve a journal entry by ID.PUT /journal/{id}
: Update a journal entry by ID.DELETE /journal/{id}
: Delete a journal entry by ID.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes.
- Commit your changes:
git commit -m "Description of changes"
- Push to the branch:
git push origin feature-branch
- Create a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.