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
2020-05-05 03:20:58 -04:00
..
.gitignore Intialize and cleanup repo 2020-04-30 19:16:46 -04:00
build.sh Additional testing, entity deletion, and player disconnection 2020-05-01 02:24:34 -04:00
console.hpp Tweaks, changes, and bugfixes 2020-05-04 23:09:39 -04:00
Dockerfile Dockerfile with working healthcheck endpoint 2020-05-02 03:02:06 -04:00
gameentity.hpp Non-grid UDP movement 2020-05-04 06:38:58 -04:00
gamemap.hpp Non-grid UDP movement 2020-05-04 06:38:58 -04:00
gameserver.hpp Tweaks, changes, and bugfixes 2020-05-04 23:09:39 -04:00
main.cpp Non-grid UDP movement 2020-05-04 06:38:58 -04:00
nginx.conf Configure endpoint for healthcheck 2020-05-02 00:50:16 -04:00
ReadMe.md Update READMEs 2020-05-05 03:20:58 -04:00
run_build.sh Intialize and cleanup repo 2020-04-30 19:16:46 -04:00
run_tests.sh Additional testing, entity deletion, and player disconnection 2020-05-01 02:24:34 -04:00
tests.cpp Non-grid UDP movement 2020-05-04 06:38:58 -04:00

Defend Together Server

Here are the instructions below for running the server locally on linux.

Build Requirements

Instructions are for Fedora Linux

Install dependencies:

dnf install enet-devel g++

For testing:

dnf install gtest gmock gmock-devel gtest-devel

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

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.