An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

sokka logo

# Sokka

[![NuGet](https://github.com/afgalvan/Sokka/actions/workflows/publish.yml/badge.svg)](https://github.com/afgalvan/Sokka/actions/workflows/dotnet.yml)
[![.NET](https://github.com/afgalvan/Sokka/actions/workflows/dotnet.yml/badge.svg)](https://github.com/afgalvan/Sokka/actions/workflows/publish.yml)
[![Nuget Version](https://img.shields.io/nuget/v/Sokka.Template?label=version&logo=NuGet&labelColor=22272E&color=blue)](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
```