Skip to content

9elmaz9/Server_spring_boot_angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Management Application

Project Screenshot

This project demonstrates a simple server management application using Spring Boot. The application allows for creating, pinging, listing, retrieving, updating, and deleting servers. It also provides an endpoint to serve server images.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/server-management.git
  2. Navigate to the project directory:

    cd server-management
  3. Build the project using Maven:

    mvn clean install
  4. Run the application:

    mvn spring-boot:run

Usage

The application provides several endpoints to manage servers. You can use tools like curl or Postman to interact with these endpoints.

Endpoints

  • Create a Server: POST /server/save
  • Ping a Server: GET /server/ping/{ipAddress}
  • List Servers: GET /server/list
  • Get Server by ID: GET /server/get/{id}
  • Update Server: PUT /server/update
  • Delete Server: DELETE /server/delete/{id}
  • Get Server Image: GET /server/image/{fileName}

Features

  • Create a Server: Add a new server to the repository with details like IP address, name, memory, type, image URL, and status.
  • Ping a Server: Check if a server is reachable by its IP address and update its status.
  • List Servers: Retrieve a list of all servers with a specified limit.
  • Get Server by ID: Retrieve a specific server's details by its ID.
  • Update Server: Update the details of an existing server.
  • Delete Server: Remove a server from the repository by its ID.
  • Get Server Image: Serve server images stored on the file system.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages