mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
95fc25d0add0dab8f36bbca83be8e0b461b3e197
Based on the file summaries provided, the best label for this commit would be "feat". This is because the commit introduces several new features to the codebase, such as adding a new ESLint rule, adding a new property to a function, adding authentication middleware, adding a query parameter, and adding a new function to handle user authentication.: update authentication and session handling - Add `"camelcase"` rule to ESLint configuration - Add `containerId` property to the `newSession` object in the `createSession` function - Add authentication middleware to the socket.io connection - Add a query parameter `session_id` to the socket.io connection in `client.js` - Add `defaultUser` function to handle user authentication - Update the `authMiddleware` function to use the `defaultUser` function - Add `defaultUser` function to handle user authentication in `auth.js` - Update `getOrCreateContainer` function to use the `id` parameter instead of `name` parameter
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 up -d
Server
Source: server/
yarn server
# Open http://localhost:3000
App
Source: app/
yarn app
# Open http://localhost:5173/
CLI terminal client
Open server first, then
yarn cli
Languages
TypeScript
64%
Vue
24.2%
Go
4.2%
Shell
2.1%
Handlebars
2.1%
Other
3.3%