Skip to content

Ravikant-sys/SpringBoot-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot-Demo

Spring Boot Clock App

A simple Spring Boot web application that displays the current server time and updates automatically every second using JavaScript.

Features

  • Real-time digital clock UI
  • Responsive layout using CSS and Google Fonts
  • Backend API built with Spring Boot

Tech Stack

  • Java 17+
  • Spring Boot
  • HTML, CSS, JavaScript (Fetch API)
  • Maven
  • Linux/Arch Environment

API Endpoint

GET /current-time
Returns current local server time in HH:mm:ss format.

How to Run

  1. Clone the Repository

  2. Build and Run

  • Using Maven:
    ./mvnw spring-boot:run
    
  1. Access the App Open your browser and go to:

Directory Structure

src/ └── main/ ├── java/com/example/demo/controller/ClockController.java └── resources/ └── static/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published