https://github.com/rizwankce/nio-services
Swift NIO services
https://github.com/rizwankce/nio-services
serverside-swift swift swift-nio
Last synced: 4 months ago
JSON representation
Swift NIO services
- Host: GitHub
- URL: https://github.com/rizwankce/nio-services
- Owner: rizwankce
- License: apache-2.0
- Created: 2024-02-05T05:10:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T07:32:44.000Z (over 1 year ago)
- Last Synced: 2025-01-04T14:48:46.634Z (6 months ago)
- Topics: serverside-swift, swift, swift-nio
- Language: Swift
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](./PingService/README.md): A service that allows clients to ping a server and receive a response, useful for testing server availability and response time.
- [Statistics Service](./StatsService/README.md): A service that provides statistics related to server performance, including uptime and response times.
- [Search Service](./SearchService/README.md): 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:
```bash
git clone https://github.com/rizwankce/nio-services.git
```2. Navigate to the service folder you want to run:
```bash
cd nio-services/PingService # or StatsService or SearchService```
3. Install the dependencies:
```bash
swift build
```4. Run the service:
```bash
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:
```bash
swift test
```## License
This project is licensed under the MIT License - see the [LICENSE.md](./LICENSE) file for details.