Light & Pluggable clone of the Cave Game written in TypeScript
Go to file
Filip Pajic 14acf73edf
chore: update package.json publish config
2024-07-18 12:58:06 +02:00
.github chore: github workflows added 2024-05-30 10:31:38 +02:00
github/assets chore: README acid section 2024-06-20 11:10:29 +02:00
packages chore: update package.json publish config 2024-07-18 12:58:06 +02:00
.gitignore feat: support saving world file to a directory 2024-07-16 18:07:58 +02:00
.prettierignore chore: github workflows added 2024-05-30 10:31:38 +02:00
.prettierrc chore: init lerna project 2024-05-29 17:28:29 +02:00
LICENSE chore: updated Licences 2024-06-20 11:58:51 +02:00
README.md feat: dockerized the server package 2024-07-16 18:22:36 +02:00
lerna.json v1.0.0-alpha.0 2024-07-18 12:41:41 +02:00
package.json chore: update package.json publish config 2024-07-18 12:51:08 +02:00
tsconfig.json chore: adapted tsconfig(s) across packages 2024-07-15 11:42:35 +02:00
yarn.lock chore: adapted tsconfig(s) across packages 2024-07-15 11:42:35 +02:00

README.md

Token Price Oracle - SC - banner Light & Pluggable clone of the Cave Game written in TypeScript

Structure ◕_◕

This repository is a monorepo containing packages needed to run WebCave in your project or simply spinning up your own client and server

Projects

webcave-core
Contains all the core game business logic


webcave-client
Client implementation for any JS/TS frontend


webcave-server
Server implementation for hosting a multiplayer game


webcave-react
React wrapper for webcave-client package


webcave-example-frontend
Example React/Vite/Typescript project showcasing how to run the game


Running the project ⊂(◉‿◉)つ

Requirements (︶︹︶)

To run the project, you'll need:

  • If setting up using Docker:
    • Installed Docker
    • Installed docker-compose (Bundled with the official Docker setup)
  • If setting up locally

Installation ███▒▒▒▒▒▒▒

Git

  1. Clone the repo: git clone https://github.com/acid-info/WebCave.git
  2. Navigate to the folder: cd WebCave

Installing the dependencies

  1. Run yarn to install the dependencies

Commands (Development) ¯(°_o)/¯

Name Command Description
Build yarn build Builds all the packages inside the project
Linting yarn lint Lints the project using pretty-quick
Running Singleplayer yarn dev Runs the project (only client) in development mode
Running Multiplayer yarn dev:mp Runs the client and server in development mode allowing for Multiplayer in unified flow
Run the Client yarn dev:client Runs the example frontend in dev mode
Run the Server yarn dev:server Runs the game server in dev mode

Running the game server ─=≡Σ((( つ◕ل͜◕)つ

To run the server, follow next steps:

Step 1: Navigate to the server package
cd packages/webcave-server

Step 2: Create the .env file and fill/change any missing data
cp .env.example .env

Step 3: Run docker
docker-compose up

Step 4: Enjoy! ٩(^‿^)۶


acid-info-logo

Made with ❤

by acid.info