Skip to content

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.

Notifications You must be signed in to change notification settings

Unitedstuff/Journal-application-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journal-application-API

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.

Description

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.

Features

  • 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).

Technologies Used

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/journal-app.git
    cd journal-app
  2. Build the project:
    mvn clean install
  3. Run the application:
    mvn spring-boot:run

Usage

  • 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.

Contributing

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-branch
  3. Make your changes.
  4. Commit your changes:
    git commit -m "Description of changes"
  5. Push to the branch:
    git push origin feature-branch
  6. Create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published