Main SGN Repo with the main apps as Bun workspaces
- TypeScript 98%
- CSS 1.4%
- Nix 0.4%
- JavaScript 0.1%
| .forgejo/workflows | ||
| .vscode | ||
| apps | ||
| packages/database | ||
| .dockerignore | ||
| .envrc | ||
| .gitignore | ||
| .npmrc | ||
| bun.lock | ||
| devenv.lock | ||
| devenv.nix | ||
| devenv.yaml | ||
| docker-compose.yml | ||
| Dockerfile.dash | ||
| Dockerfile.server | ||
| example.env | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| shell.nix | ||
| start-server.sh | ||
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>.