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
|
yarn install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Create database
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
|
|
||||||
Source: `server/`
|
Source: `server/`
|
||||||
@@ -31,3 +37,11 @@ Source: `app/`
|
|||||||
yarn app
|
yarn app
|
||||||
# Open http://localhost:5173/
|
# Open http://localhost:5173/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## CLI terminal client
|
||||||
|
|
||||||
|
Open server first, then
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn cli
|
||||||
|
```
|
||||||
+1
-1
@@ -2,7 +2,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mongo
|
image: mongo
|
||||||
restart: on-failure
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- '27017:27017'
|
- '27017:27017'
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
"server": "yarn workspace server dev",
|
"server": "yarn workspace server dev",
|
||||||
"cli": "yarn workspace server cli",
|
"cli": "yarn workspace server cli",
|
||||||
"lint": "eslint --ext .js,.vue .",
|
"lint": "eslint --ext .js,.vue .",
|
||||||
"format": "prettier --write ."
|
"format": "prettier --ignore-path .prettierignore --write app server"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/eslint-config-prettier": "^7.1.0",
|
"@vue/eslint-config-prettier": "^7.1.0",
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ const Session = model(
|
|||||||
},
|
},
|
||||||
containerId: String,
|
containerId: String,
|
||||||
finishedAt: Date,
|
finishedAt: Date,
|
||||||
terminals: [String],
|
|
||||||
},
|
},
|
||||||
{ timestamps: true }
|
{ timestamps: true }
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user