Git Product home page Git Product logo

splix-1's Introduction

Splix

This monorepo contains the Splix client code, server code, as well as code related to server management.

Running locally

  1. To download the executable, head over to releases and download the latest release for your platform.
  2. Unarchive the .tar file.
  3. You can run splixGameServer --help from the command line for an overview of arguments, but depending on your platform, you might be able to double click the downloaded file to start the server as well.

If everything went as expected, you should see Listening on: ws://localhost:8080. You can now connect to the server by visiting https://splix.io/#ip=ws://localhost:8080

Hosting your own public server

Hosting your own server is beyond the scope of this documentation. There are many different cloud providers, each with their own pros and cons. The official splix server is hosted on a DigitalOcean droplet. It uses a nginx proxy in combination with certificates from Let's Encrypt.

As an example, adding the following to your server block in your nginx configuration will forward requests to yourdomain.com/ws to the splix gameserver.

location ~* /(ws)$ {
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header X-Forwarded-Proto $scheme;
	proxy_http_version 1.1;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection "Upgrade";

	proxy_pass http://localhost:8080;
	proxy_read_timeout 90;
}

Running in a development environment

If you want to make changes to the code, you can run the server in a development environment.

  1. Install Deno
  2. Clone this repository
  3. cd into the cloned repository and run deno task dev

This will start a local server, with several endpoints. Visit https://localhost:8080 for a list of endpoints.

splix-1's People

Contributors

jespertheend avatar splixcord avatar abhishek-exists avatar hpx7 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.