Skip to content

0xPARC/frog-zone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frog Zone

Getting Started

Client is managed with bun. Get bun if you don't have it. Then, bun install in packages/client. Client (packages/client) is vite + SWC + ts + rxjs + phaser + react. Run with bun dev. Don't forget to add a .env with appropriate env variables.

Backend and local client (packages/phantom-client, packages/server, packages/worker) are rust (rocket). Install dependencies, build, and run with sh start.sh from packages. Test with sh test.sh. Sometimes stuff is really finnicky so you might have to try a couple of times.

Running the Login Server Locally:

The login server controls players logging in, their status and ending the game. You can run it locally or use the live version url.

If running locally, you will need to create a postgress database and add the credentials to .env in packages/login or ask someone for credentials.å

Login Server (packages/client) is next js + react + prisma. Run with bun dev Update LOGIN_SERVER_URL to .env to point to your local login server, ex: http://localhost:3000

From packages/ run bun install From the root folder of the repo run npx patch-package this will patch the package fastfile which is a dependency of /login. You should see a log that the patch for fastfile was applied. From packages/login delete the .next folder (to remove cached dependencies without the patch, just in case) Run bun dev in packages/login

The client should now restart and hit your local login server to change the login and game status throughout the game.

Running the Plain text version of the game:

Add IS_MOCK=true to .env in packages/client Rerun sh start.sh in packages/server

Running with Dev features:

Add IS_MOCK=true to .env in packages/client, this enables certain dev features like bypassing the login and the TileMapEditor