mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
Update README, format script
This commit is contained in:
1 parent
5410254ee0
commit
c4e14fa271
5 files changed
+17
-3
No files matched your search
@@ -0,0 +1 @@
|
||||
data/*
|
||||
@@ -14,6 +14,12 @@ cd linux-odyssey
|
||||
yarn install
|
||||
```
|
||||
|
||||
## Create database
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Server
|
||||
|
||||
Source: `server/`
|
||||
@@ -31,3 +37,11 @@ Source: `app/`
|
||||
yarn app
|
||||
# Open http://localhost:5173/
|
||||
```
|
||||
|
||||
## CLI terminal client
|
||||
|
||||
Open server first, then
|
||||
|
||||
```
|
||||
yarn cli
|
||||
```
|
||||
+1
-1
@@ -2,7 +2,7 @@ version: '3'
|
||||
services:
|
||||
db:
|
||||
image: mongo
|
||||
restart: on-failure
|
||||
restart: always
|
||||
ports:
|
||||
- '27017:27017'
|
||||
volumes:
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
"server": "yarn workspace server dev",
|
||||
"cli": "yarn workspace server cli",
|
||||
"lint": "eslint --ext .js,.vue .",
|
||||
"format": "prettier --write ."
|
||||
"format": "prettier --ignore-path .prettierignore --write app server"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/eslint-config-prettier": "^7.1.0",
|
||||
|
||||
@@ -14,7 +14,6 @@ const Session = model(
|
||||
},
|
||||
containerId: String,
|
||||
finishedAt: Date,
|
||||
terminals: [String],
|
||||
},
|
||||
{ timestamps: true }
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user