Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 Journal Entry Application

A Spring Boot REST API for managing journal entries, allowing users to create, update, delete, and retrieve their thoughts securely.

🚀 Features

  • 📌 CRUD Operations: Create, Read, Update, and Delete journal entries
  • 🔒 Secure database storage
  • 🌐 RESTful API with structured JSON responses
  • 📅 Entries organized by date

🛠️ Tech Stack

  • Backend: Java, Spring Boot
  • Database: MySQL / PostgreSQL
  • Build Tool: Maven

📥 Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/Aaditya-Makwana/JournalEntryApplication.git
cd JournalEntryApplication

2️⃣ Configure the Database

  • Update src/main/resources/application.properties with your MySQL/PostgreSQL credentials:
    spring.datasource.url=jdbc:mysql://localhost:3306/journal_db
    spring.datasource.username=root
    spring.datasource.password=yourpassword
    spring.jpa.hibernate.ddl-auto=update

3️⃣ Build and Run the Application

mvn clean install  
mvn spring-boot:run

4️⃣ API Endpoints

Method Endpoint Description
POST /api/entries Create a new journal entry
GET /api/entries Get all journal entries
GET /api/entries/{id} Get a specific entry by ID
PUT /api/entries/{id} Update an existing journal entry
DELETE /api/entries/{id} Delete a journal entry

Test the endpoints using Postman or cURL.

📸 API Documentation

If Swagger is enabled, access API docs at:
🔗 http://localhost:8080/swagger-ui/

🛠️ Contributing

  1. Fork the repository
  2. Create a new branch:
    git checkout -b feature-branch-name
  3. Commit and push your changes
  4. Submit a pull request

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages