Lin, Hung-Shin fcaa088a31 Merge pull request #11 from lancatlin/server-socket-graph
New features:
1. collect 2 levels file list when user type 'ls' in container
2. send the file graph event via socket

Breaking changes:
1. change the channel of terminal connection from 'message' to 'terminal'
3. move client.js to standalone package packages/client
4. change frontend api to call the same origin instead, setup vite proxy for developement. (Now it's localhost on default cuz the server updates includes in this PR as well)
2023-08-21 22:14:06 +08:00
2023-07-15 15:30:42 +08:00
2023-07-20 17:05:01 +08:00
2023-08-21 20:40:05 +08:00

Linux Odyssey

Requirements

  • NodeJS
  • Docker
  • Yarn

Installation

git clone https://github.com/lancatlin/linux-odyssey.git
cd linux-odyssey
yarn install

Create database

docker compose pull
docker compose up -d db

Server

Source: server/

docker compose -f docker-compose.build.yml pull
docker compose up -d
# Open http://localhost:3000

Build images

docker compose build
docker compose push

Game images:

docker compose -f docker-compose.build.yml build
docker compose -f docker-compose.build.yml push

App

Source: app/

# Connect to dev server (https://odyssey.wancat.cc)
yarn app

# Connect to localhost (http://localhost:3000)
yarn app:local

Swagger

docker compose up -d swagger

Open http://localhost:8080 to open Swagger

CLI terminal client

yarn cli
Usage: client [options] [command]

Options:
  -s, --session <string>  Session ID
  -c, --create            Create a new session
  -h, --host <string>     Server host (default: "http://localhost:3000")
  --help                  display help for command

Commands:
  list                    List all sessions

connet to recent session:

yarn cli

connect to new session:

yarn cli -c

connect to specific session:

yarn cli -s 64d0de0367459c13004bc83f

connect to other host:

yarn cli -h https://example.com

list sessions:

yarn cli list
S
Description
No description provided
Readme GPL-3.0
8.1 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 64%
Vue 24.2%
Go 4.2%
Shell 2.1%
Handlebars 2.1%
Other 3.3%