Skip to content

StanislavNikolov/chess-league

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1791024 · Aug 22, 2023

History

82 Commits
Aug 20, 2023
Aug 9, 2023
Aug 22, 2023
Aug 22, 2023
Aug 9, 2023
Aug 19, 2023
Aug 22, 2023
Aug 11, 2023
Aug 11, 2023
Aug 14, 2023
Aug 11, 2023
Aug 10, 2023

Repository files navigation

Intro

TODO

Setup

External dependencies

# Install postgres and bubblewrap for secure execution
apt install bubblewrap postgres

# Install dotnet to compile the bots
curl -fsSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh | bash

# Install bun
curl -fsSL https://bun.sh/install | bash

mkdir compiled

Database

psql postgres
> CREATE USER chess WITH ENCRYPTED PASSWORD 'RANDOM_PASSWORD';
> CREATE DATABASE chess;
> GRANT ALL PRIVILEGES ON DATABASE chess TO chess;
> \c chess
> GRANT ALL ON SCHEMA public TO chess;
cat > .env
PGDATABASE=chess
PGUSERNAME=chess
PGPASSWORD=RANDOM_PASSWORD

The server itself

After that, you can develop or run as any other bun project.

bun install
bun backend/index.ts

Architecture

TODO

About

Allow bots made for Sebastian Lague's to fight realtime https://chess.sjto.dev

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published