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
```
## 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
View File
@@ -2,7 +2,7 @@ version: '3'
services:
db:
image: mongo
restart: on-failure
restart: always
ports:
- '27017:27017'
volumes:
+1 -1
View File
@@ -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",
-1
View File
@@ -14,7 +14,6 @@ const Session = model(
},
containerId: String,
finishedAt: Date,
terminals: [String],
},
{ timestamps: true }
)