Skip to content
Snippets Groups Projects
README.md 521 B
Newer Older
Adamík, Jakub's avatar
Adamík, Jakub committed
# EfficientServers

adamijak's avatar
adamijak committed
Before compilation make sure you have `dotnet` installed.
Adamík, Jakub's avatar
Adamík, Jakub committed

adamijak's avatar
adamijak committed
To compile program for deployment in production you can run
Adamík, Jakub's avatar
Adamík, Jakub committed

```
adamijak's avatar
adamijak committed
dotnet publish -c Release
Adamík, Jakub's avatar
Adamík, Jakub committed
```

adamijak's avatar
adamijak committed
It will compile program to publish folder.
Publish folder can be seen on the standard output when compilation ends.
Adamík, Jakub's avatar
Adamík, Jakub committed

adamijak's avatar
adamijak committed
To run the Server navigate to publish folder and run
Adamík, Jakub's avatar
Adamík, Jakub committed

adamijak's avatar
adamijak committed
```
./Server
```
The server will run on port `5001`.
Adamík, Jakub's avatar
Adamík, Jakub committed

adamijak's avatar
adamijak committed
If needed, schema can be recompiled using following command.
Adamík, Jakub's avatar
Adamík, Jakub committed

adamijak's avatar
adamijak committed
```
adamijak's avatar
adamijak committed
protoc --proto_path=. --csharp_out=. schema.proto
adamijak's avatar
adamijak committed
```
Adamík, Jakub's avatar
Adamík, Jakub committed