Skip to content

Ruby-Network/ruby-assets

Repository files navigation

ruby

repo size commit a week

Ruby Network Discord

Usage

  • Using this is super easy!
  • I recommend using Docker for this so you don't have to build the server files!
  • A docker-compose.yml & Dockerfile are provided.
    • You can either use the prebuilt docker image (docker-compose.yml)
    • Or clone the repository and build yourself with docker (docker-compose.build.yml)

Using in your frontend

This is super easy!

Prerequisites

  • A server (preferably reverse proxied) or your own way of serving the assets
  • A website in need of games
  • Some way to render those games

Now, with all of that out of the way let's get started.

  • All the games are located in the games sub directory
  • Some games are subdirectories with tons of different versions; An example would be Subway Surfers
  • All you have to do is get the .html file located in each folder and render it. Every game uses relative paths so they shouldn't break. If they do, please open an issue
  • Some great examples of websites using this repo & how they render the games:

Tech Stack

  • Go (The file server)
  • Docker (The containerization of the services)
  • Docker Compose (The orchestration of the services)