Skip to content

Robust RESTful API server built with Spring Boot. The application provides the backend services for my Angular client, handles authentication, business logic, and data persistence.

Notifications You must be signed in to change notification settings

BongaGougota0/Angular_Server_Fatty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Spring Boot Server Application

Spring Boot Java Gradle

Overview

This repository contains a robust RESTful API server built with Spring Boot. The application provides the backend services for my Angular client, handles authentication, business logic, and data persistence. The client code can be found on [https://github.com/BongaGougota0/Angular_Client]

πŸ”§ Technologies

  • Spring Boot: Java-based framework for creating stand-alone production-grade applications
  • Spring Security: Authentication and authorization
  • Spring Data JPA: Data persistence and ORM
  • Hibernate: Object-relational mapping
  • Mysql: Relational database
  • Lombok: Boilerplate code reduction

πŸ“‹ Requirements

  • JDK 17 or later (this project : Java 21)
  • Maven 3.8.x
  • MySQL 8.x

πŸš€ Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/BongaGougota0/Angular_Server_Fatty
    cd Angular_Server_Fatty
  2. Configure the database connection in src/main/resources/application.properties:

  3. Build the application:

    # Maven
    ./mvnw clean package
    
  4. Run the application:

    # Maven
    ./mvnw spring-boot:run
    

The server will start at http://localhost:8080.

πŸ“‚ Project Structure

src/
β”œβ”€β”€ main/
β”‚   β”œβ”€β”€ java/com/yourcompany/app/
β”‚   β”‚   β”œβ”€β”€ configuration/       # Configuration classes, demo data generator
β”‚   β”‚   β”œβ”€β”€ controller/          # REST controllers
β”‚   β”‚   β”œβ”€β”€ dto/                 # Data Transfer Objects
β”‚   β”‚   β”œβ”€β”€ exception/           # Custom exceptions
β”‚   β”‚   β”œβ”€β”€ models               # Entity classes
β”‚   β”‚   β”œβ”€β”€ repositories/        # Data access layer
β”‚   β”‚   β”œβ”€β”€ security/            # Authentication & authorization
β”‚   β”‚   β”œβ”€β”€ service/             # Business logic
β”‚   β”‚   └── util/                # Utility classes
β”‚   └── resources/
β”‚       β”œβ”€β”€ app-.properties      # Application configuration
β”‚       └── schema.sql           # script for creating schema and tables

Environment Variables

Key environment variables that need to be set:

  • SPRING_DATASOURCE_URL
  • SPRING_DATASOURCE_USERNAME
  • SPRING_DATASOURCE_PASSWORD
  • JWT_SECRET

🀝 Done.

Bonga Gougota Gongotha

About

Robust RESTful API server built with Spring Boot. The application provides the backend services for my Angular client, handles authentication, business logic, and data persistence.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages