Serververse is a server application built in Java using the Chain of Responsibility design pattern. It can be run as an Echo Server, which echoes any text that is sent to it, or an HTTP server, which processes HTTP requests. It was created using JDK 17 and Gradle 7.4.
Clone this repo:
git clone https://github.com/karen-olson/serververse
cd
into the program directory and enter gradle build
To run the program internally in IntelliJ, enter gradle run
in the terminal.
This project uses IntelliJ's built-in formatting capabilities, and does not use a 3rd party linter.
To run tests, enter gradle test
in the terminal.
To stop the server, enter CTRL+C in the terminal.
To make requests using netcat, enter nc <url>
in the terminal.
To disconnect from the server when using netcat, enter CTRL+C or CTRL+D in the terminal.