a-n-u-p-01 / Journal-Rest-API

Open to contribute, improve your debug skill by contributing this project. Thank you!
6 stars 1 forks source link

Journal REST API

Overview

The Journal REST API is a Spring Boot application designed to manage journal entries for users. It provides endpoints for creating, reading, updating, and deleting journal entries, as well as user management functionalities.

Features

Technologies Used

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Journal-Rest-API.git
    cd Journal-Rest-API
  2. Build the project:

    mvn clean install
  3. Run the application:

    mvn spring-boot:run

Configuration

The application uses a MongoDB database. Ensure that MongoDB is running and accessible. You can configure the MongoDB connection in the application.properties file.

spring.data.mongodb.uri=mongodb://localhost:27017/yourdatabase

API Endpoints

Here is the postman collection, import it Journal App postman_collection

Public Endpoints

User Endpoints

Admin Endpoints

Health Check

Security

The application uses Spring Security for authentication and authorization. The following roles are defined:

Contributing

Contributions are welcome! Please fork the repository and submit a pull request. Create an issue first before PR.

For Spring Boot Learners

If you are a Spring Boot learner, we encourage you to debug this application and contribute to its improvement. Here are some steps to get started:

  1. Set up your development environment: Follow the installation steps above to set up the project locally.
  2. Explore the codebase: Familiarize yourself with the structure of the project and the different components.
  3. Debug the application: Use your IDE's debugging tools to step through the code and understand how it works.
  4. Identify areas for improvement: Look for bugs, performance issues, or areas where the code can be refactored.
  5. Contribute: Fork the repository, make your changes, and submit a pull request.