Main SGN Repo with the main apps as Bun workspaces
  • TypeScript 98%
  • CSS 1.4%
  • Nix 0.4%
  • JavaScript 0.1%
Find a file
2026-04-19 23:30:56 -04:00
.forgejo/workflows Update .forgejo/workflows/build.yml 2026-04-19 23:30:56 -04:00
.vscode disable deno 2025-10-07 23:15:27 -04:00
apps make a lil prettier 2026-04-19 15:12:09 -04:00
packages/database Update pnpm to v10.28.2 [SECURITY] 2026-04-18 05:54:45 +00:00
.dockerignore update submodule 2025-09-27 22:42:37 -04:00
.envrc use devenv shell 2026-04-13 13:22:16 -04:00
.gitignore Create devenv stuff 2026-04-11 16:48:53 -04:00
.npmrc switch to bun 2025-11-17 16:44:25 -05:00
bun.lock Merge pull request 'Update dependency shadcn to v4' (#60) from renovate/shadcn-4.x into master 2026-04-16 01:30:13 -04:00
devenv.lock update devenv lock 2026-04-13 13:22:21 -04:00
devenv.nix remove the execs in dbmigrate task 2026-04-13 13:40:46 -04:00
devenv.yaml Create devenv stuff 2026-04-11 16:48:53 -04:00
docker-compose.yml set wal_level to logical for subscriptions 2026-04-13 13:19:29 -04:00
Dockerfile.dash Update Dockerfile.dash 2026-04-17 07:23:51 -04:00
Dockerfile.server Update Dockerfile.server 2026-04-17 07:23:37 -04:00
example.env init 2025-09-27 15:07:18 -04:00
package.json switch to bun 2025-11-17 16:44:25 -05:00
README.md clarify devenv a little 2026-04-11 16:25:39 -04:00
renovate.json fix name 2026-04-18 01:54:08 -04:00
shell.nix add nodejs because some postinstall script requires it and i really dont wanna figure it out rn 2026-04-07 01:32:51 +00:00
start-server.sh oops forgot to put that back 2026-03-12 09:29:17 -04:00

Ancients of Resonite Stargate Network Backend

The full backend server including the dashboard

Development

Requirements

  • Bun
  • Devenv Not necessarily required but highly recommend to get the dev server started faster
    • This lets you quickly spin up a dev environment

Setup

Create devenv.local.nix with the following content

{
  env = {
    DB_USER = "user"; # NOTE: Replace user with your username
  };
}

Startup Devenv

Running this command will spin up a dev environment

devenv up

You will be able to access the websocket at ws://localhost:8000 and the dash at http://localhost:3000.

Contributing

Create a new branch corresponding with what you are doing. Eg: Adding something new for the dash would be a-dash_<new feature> and a fix for the dash would be f-dash_<fix>.