init bun and docker compose

This commit is contained in:
Benjamin Palko 2025-05-20 14:26:53 -04:00
parent d8462237c5
commit 8bfd441c34
4 changed files with 56 additions and 0 deletions

36
README.md Normal file
View file

@ -0,0 +1,36 @@
# Massive
<!--toc:start-->
- [Massive](#massive)
- [Setup](#setup) - [Install run-times](#install-run-times) - [Install SpacetimeDB](#install-spacetimedb)
<!--toc:end-->
## Setup
### Install run-times
```bash
mise use
```
### Install SpacetimeDB
```bash
curl -sSf https://install.spacetimedb.com | sh
```
Installs to
```
CLI configuration directory: /home/baobeld/.config/spacetime/
Spacetime binary: /home/baobeld/.local/bin/spacetime
directory for installed SpacetimeDB versions: /home/baobeld/.local/share/spacetime/bin
database directory: /home/baobeld/.local/share/spacetime/data
```
And enable WebAssembly:
```bash
dotnet workload install wasi-experimental
```

BIN
bun.lockb Executable file

Binary file not shown.

6
docker-compose.yml Normal file
View file

@ -0,0 +1,6 @@
services:
spacetime:
image: clockworklabs/spacetime
ports:
- 3000:3000
command: start

14
package.json Normal file
View file

@ -0,0 +1,14 @@
{
"name": "massive",
"scripts": {
"server:up": "docker compose up -d",
"server:down": "docker compose down",
"server:build": "dotnet build server",
"server:add": "spacetime server add --url http://localhost:3000 massive --default",
"server:publish": "spacetime publish --project-path server --server massive",
"server:generate": "spacetime generate --lang csharp --out-dir client/module_bindings --project-path server"
},
"devDependencies": {
"@types/bun": "latest"
}
}