Skip to content

rizwankce/nio-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift NoIO Services

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.

Services

  • 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.

Getting Started

Prerequisites

  • Swift 5.9 or later
  • Xcode 15.2 or later (for macOS)

Installation

  1. Clone the repository:
git clone https://github.com/rizwankce/nio-services.git
  1. Navigate to the service folder you want to run:
cd nio-services/PingService # or StatsService or SearchService
  1. Install the dependencies:
swift build
  1. Run the service:
swift run PingService # or StatsService or SearchService

Running the Services

Each service can be run independently by navigating to its directory and following the instructions provided in its README.md file.

Testing

To run the tests for each service, navigate to the service's directory and execute the following command:

swift test

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Releases

No releases published

Packages

No packages published

Languages