Skip to content

bkalzhan/MoneyMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoneyMap

Overview

User Service is a microservice responsible for managing user-related operations, including authentication, user profile management, and user data storage. It is built using Spring Boot and follows a microservices architecture.

Tech Stack

  • Java 17
  • Spring Boot 3
  • Spring Data JPA
  • PostgreSQL (or any other relational database)
  • Maven (for dependency management)
  • Docker (optional, for containerization)

Project Structure

user-service/
├── pom.xml                 # Project dependencies
├── src/
│   ├── main/
│   │   ├── java/
│   │   │   └── com/
│   │   │       └── moneymap/
│   │   │           └── userservice/
│   │   │               ├── config/         # Configuration classes
│   │   │               ├── controller/     # API endpoints
│   │   │               ├── model/          # Data models (entities)
│   │   │               ├── repository/     # Database access layer
│   │   │               ├── service/        # Business logic layer
│   │   │               └── exception/      # Exception handling
│   │   └── resources/
│   │       ├── application.yml  # Application configuration
│   │       └── data.sql         # Optional initial data
│   └── test/
│       ├── java/
│       │   └── com/
│       │       └── moneymap/
│       │           └── userservice/  # Unit and integration tests
└── README.md

Getting Started

Prerequisites

Ensure you have the following installed:

Setup and Run

1. Clone the Repository

git clone https://github.com/yourcompany/user-service.git
cd user-service

2. Build the Project

mvn clean install

3. Run the Application

mvn spring-boot:run

4. API Endpoints

Method Endpoint Description
GET /users Get all users
POST /users Create a new user
GET /users/{id} Get user by ID
PUT /users/{id} Update user details
DELETE /users/{id} Delete user

5. Running Tests

mvn test

Docker Support

To build and run the service using Docker, use:

docker build -t user-service .
docker run -p 8080:8080 user-service

Future Enhancements

  • Implement JWT-based authentication.
  • Add API documentation with Swagger.
  • Introduce a caching mechanism for improved performance.

About

Personal finance management web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages