https://github.com/upen-source/sokka
.NET Socket server and console client template.
https://github.com/upen-source/sokka
console dependency-injection dotnet5 sockets
Last synced: over 1 year ago
JSON representation
.NET Socket server and console client template.
- Host: GitHub
- URL: https://github.com/upen-source/sokka
- Owner: upen-source
- License: mit
- Created: 2021-07-11T05:43:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T16:07:37.000Z (almost 5 years ago)
- Last Synced: 2025-03-02T23:17:09.628Z (over 1 year ago)
- Topics: console, dependency-injection, dotnet5, sockets
- Language: C#
- Homepage: https://www.nuget.org/packages/Sokka.Template/
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Sokka
[](https://github.com/afgalvan/Sokka/actions/workflows/dotnet.yml)
[](https://github.com/afgalvan/Sokka/actions/workflows/publish.yml)
[](https://www.nuget.org/packages/Sokka.Template/)
Template for C# socket server with dependency injection in .NET 5.
## Features
- Sockets
- Dependency injection
- Docker & docker compose
- editorconfig
## Installation
```bash
dotnet new -i Sokka.Template
```
## Usage
```bash
dotnet new sokka -o Your.Project
```
## Run it
### From .NET
```bash
# Run the server
cd Your.Project/src/Your.Project.Server
dotnet run
# Run the client
cd Your.Project/src/Your.Project.Client
dotnet run
```
### From Docker
```bash
# Build the containers
docker-compose build
# Run the server container
docker-compose up server
# Run the client container
docker-compose run --rm client
```