This repository contains a collection of server-side applications written in Swift using the swift-nio
framework. The services are designed to demonstrate various functionalities such as pinging, statistics collection, and search capabilities.
- Ping Service: A service that allows clients to ping a server and receive a response, useful for testing server availability and response time.
- Statistics Service: A service that provides statistics related to server performance, including uptime and response times.
- Search Service: A service that allows clients to search for data using a search query, providing efficient search functionality for finding facilities by name and retrieving facility locations.
- Swift 5.9 or later
- Xcode 15.2 or later (for macOS)
- Clone the repository:
git clone https://github.com/rizwankce/nio-services.git
- Navigate to the service folder you want to run:
cd nio-services/PingService # or StatsService or SearchService
- Install the dependencies:
swift build
- Run the service:
swift run PingService # or StatsService or SearchService
Each service can be run independently by navigating to its directory and following the instructions provided in its README.md
file.
To run the tests for each service, navigate to the service's directory and execute the following command:
swift test
This project is licensed under the MIT License - see the LICENSE.md file for details.