Skip to content

KevLiu27/datapulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datapulse

This repository contains the source code for the DataPulse project, including the Backend (Spring Boot), Frontend (Vite/React), and Database (TimescaleDB/PostgreSQL).

The entire application is containerized and configured to be easily launched in any environment using Docker.

Architecture

  • Frontend: Single Page Application built with Vite and TypeScript (Exposed port: 5173).
  • Backend: REST API developed with Spring Boot 4 and Java 17 (Exposed port: 8080).
  • Database: TimescaleDB based on PostgreSQL 15, optimized for time-series data (Exposed port: 5432).

Prerequisites

To run the application, you need to have the following installed on your machine:

How to Run the Application

The entire ecosystem is orchestrated using Docker Compose. To start the project, follow these steps:

  1. Clone the repository to your local machine and open a terminal in the root folder of the project (where the docker-compose.yml file is located).
  2. Execute the following command to build the images and start the containers in the background:
docker compose up -d --build

Important note on the first startup: During the very first launch, the database will take a few seconds to execute the initialization script (schema.sql) and set up the tables. The Spring Boot backend is configured with a healthcheck and will automatically wait for the database to be fully ready before starting. This prevents any startup crashes or connection errors.

How to Stop the Application

To stop the containers without losing the data saved in the database:

docker compose down

To stop the containers and permanently delete all data from the database (useful if you want to force a complete reset on the next startup):

docker compose down -v

Accessing the Services

Once all containers are successfully running, you can access the various services via your browser or API testing tools:

Service Local URL
Web Frontend http://localhost:5173
API Backend http://localhost:8080
Database localhost:5432

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages