Update README, format script

This commit is contained in:
wancat committed 2023-07-20 17:05:01 +08:00
1 parent 5410254ee0
commit c4e14fa271
5 files changed
+17 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
data/*
+14
View File
@@ -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
View File
@@ -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
View File
@@ -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",
-1
View File
@@ -14,7 +14,6 @@ const Session = model(
}, },
containerId: String, containerId: String,
finishedAt: Date, finishedAt: Date,
terminals: [String],
}, },
{ timestamps: true } { timestamps: true }
) )