Skip to content

mythal/boluo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boluo

A chat application designed specifically for playing RPGs.

screenshot

This repository is a monorepo, which contains the following applications:

  • apps/site: The web site frontend.
  • apps/server: The server.
  • apps/legacy: The old version of Boluo web application.
  • apps/spa: The single page application.

Set Up Development Environment

We recommomend you to use nix package manager (installer), which is easiest way to set up development environment. After you install nix, just run nix develop to get a shell with all required tools.

But if you don't want to use nix, you can install the following tools manually:

  • Rust toolchain: Even though you just want to develop the frontend, you still recommended to install Rust because code generation depends on it.
  • Node.js
  • Docker or Podman (recommanded)

We also provide the codespaces configuration, which can be used to develop in GitHub web interface or locally without set up anything.

Development Services

If you want to develop the server, you need to start the development services first. Otherwise, you can just set up the BACKEND_URL environment variable to point to the production server.

Rename example configurations:

./scripts/rename-examples.sh
# Change ports if you need
# vim services/.docker-compose.override.yml

Then start development services use docker-compose:

cd services
docker-compose up

To compile the server, you need to set up the DATABASE_URL environment variable in the .env.local.

Check The Environment

cargo test
# Web
npm install
npm build

Credits