Skip to content

A backend API to manage servers: add servers, delete and ping them. This API is a part of a Fullstack application, so it is being consumed by the frontend app.

Notifications You must be signed in to change notification settings

nicolasgandrade/servermanager-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Manager - Backend

Java Spring Postgres Heroku

A backend API to manage servers: add servers, delete and ping them. With this app, you can test the connection between the machine where the program is running and another machine by its IP address.
This is the API of a Fullstack application, so it is being consumed by the frontend app. You can find the frontend repository here: https://github.com/nicolasgandrade/servermanager-frontend

Heroku deploy:
✔️ Fullstack app: https://serversmanager.herokuapp.com ✔️
⚙️ API: https://serversmanager-backend.herokuapp.com ⚙️

Obs: The deploy in Heroku is just a demo of the application. The original purpose of the project is to test the connection between 2 servers, so you can clone the app to your local machine and use the program properly, testing your connection to other servers.

ObjectiveFeaturesGetting startedEndpointsAuthor

Features

  • Save new server
  • Delete server
  • Ping server

Getting started

1. Clone the application to your local machine, and open the project in your favorite IDE (must be compatible to Spring Boot).
2. In the last lines of ServerResource.java change the return statement to the path you have downloaded the images you're gonna use to the UI.
3. Create a database on PostgreSQL called "servermanager", or change the configs at application.properties.
4. Now you can run and access in your default Spring Boot port.
5. (Optional) Remember to run the frontend app too, the guide is in its repository.
To test the API manually, you can use Postman, Insomnia or similar and try the endpoints.

Endpoints

  1. Return a list of all the servers (GET)
/servers/list

  1. Return a server by id (GET)
/servers/get/{id}

  1. Save a new server (POST)
/servers/save

JSON example:

{
  "ipAddress": "string",
  "name": "string",
  "memory": "string",
  "type": "string",
  "imgUrl": "string",
  "status": SERVER_DOWN
}

  1. Ping a server (GET)
/servers/ping/{ipAddress}

  1. Delete a server by id (POST)
/servers/delete/{id}

Author


Made with ❤️ by Nicolas Guerrero 👋

About

A backend API to manage servers: add servers, delete and ping them. This API is a part of a Fullstack application, so it is being consumed by the frontend app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages