init bun and docker compose
This commit is contained in:
parent
d8462237c5
commit
2414b3f5b6
4 changed files with 55 additions and 0 deletions
36
README.md
Normal file
36
README.md
Normal 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
BIN
bun.lockb
Executable file
Binary file not shown.
6
docker-compose.yml
Normal file
6
docker-compose.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
spacetime:
|
||||
image: clockworklabs/spacetime
|
||||
ports:
|
||||
- 3000:3000
|
||||
command: start
|
||||
13
package.json
Normal file
13
package.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "massive",
|
||||
"scripts": {
|
||||
"server:up": "docker compose up -d",
|
||||
"server:down": "docker compose down",
|
||||
"server:build": "dotnet build server",
|
||||
"server:publish": "spacetime publish --project-path server massive",
|
||||
"server:generate": "spacetime generate --lang csharp --out-dir client/module_bindings --project-path server"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue