This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
defend-together/server/ReadMe.md

31 lines
836 B
Markdown
Raw Permalink Normal View History

2020-05-05 09:20:58 +02:00
# Defend Together Server
Here are the instructions below for running the server locally on linux.
2020-05-01 01:16:46 +02:00
## Build Requirements
2020-05-05 09:20:58 +02:00
_Instructions are for Fedora Linux_
2020-05-01 01:16:46 +02:00
2020-05-05 09:20:58 +02:00
Install dependencies:
2020-05-01 01:16:46 +02:00
2020-05-05 09:20:58 +02:00
`dnf install enet-devel g++`
2020-05-01 01:16:46 +02:00
2020-05-05 09:20:58 +02:00
For testing:
2020-05-01 01:16:46 +02:00
2020-05-05 09:20:58 +02:00
`dnf install gtest gmock gmock-devel gtest-devel`
2020-05-01 01:16:46 +02:00
2020-05-05 09:20:58 +02:00
## Building Server
Within the server directory run: `bash build.sh`
## Running Tests
Within the server directory run: `bash run_tests.sh`
## Running Server
If you have already built the server, you can run the binary location at `builds/server.out`, otherwise within the server directory, you can run `run_build.sh` to build and run the server.
# Running in Docker
2020-05-01 01:16:46 +02:00
2020-05-05 09:20:58 +02:00
A `Dockerfile` is provided in this project. So you can run `docker build -t defend-together .` and then `docker run -p 7777:7777 defend-together` to run locally on port `7777` in docker.