Giter Club home page Giter Club logo

flappy-backend's Introduction

Flappy Backend

This repo contains all of the backend server code for the Flappy Race game which includes the main server list (under ./list) and the server game manager (under ./manager) as submodules.

These services can all be run using docker compose for convenience:

  • Server list (to show games on the server browser)
  • Server game manager (to host official game servers)
  • Watchtower (auto updates docker images)
  • Nginx with certbot (reverse proxy to route connections to services and keeps HTTPS certificates updated automatically)

Setup

In order to support HTTPS a ./proxy/.env file is needed with a valid email address which certbot can use to request certificates. Make a copy of the .env.example file in the proxy directory and rename it .env and add your email address to set the CERTBOT_EMAIL env var.

Development

Ensure all submodules are cloned and updates using git pull --recurse-submodules. Use docker compose up to build and run the services using the local code in the submodule repos, without Watchtower auto updating images.

To get HTTPS to work correctly locally add jibby.localhost to your hosts file to point at 127.0.0.1 and add the local CA from the proxy service container's files (the file to add is /etc/local_ca/caCert.pem).

Production

Use the ./start-prod.sh and ./stop-prod.sh scripts to start and stop the services on production servers which includes some extras such as auto restarting containers and pulling docker images from DockerHub with Watchtower to keep them updated.

You can use ./reload-nginx.sh to update the nginx config without any downtime.

flappy-backend's People

Contributors

jibbajabbafic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.