Skip to content

Commit

Permalink
Update README file
Browse files Browse the repository at this point in the history
  • Loading branch information
k33ronng committed Dec 9, 2024
1 parent 2952338 commit 6b112c4
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions project/server/readme.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
Backend
# Backend Documentation

# Models
路径: /home/unicareer/project/server/src/models
## Models
**Path**: `/home/unicareer/project/server/src/models`

# Services
路径: /home/unicareer/project/server/src/services
## Services
**Path**: `/home/unicareer/project/server/src/services`

# Tests
路径: /home/unicareer/project/server/src/tests
## 数据库测试 (local)
## Tests
**Path**: `/home/unicareer/project/server/src/tests`

### Database Testing (Local)

Run the following command to test the local database:

```bash
npm run test:local
```

## 数据库测试 (db)
### Database Testing (db)

Run the following command to test the local database:

```bash
npm run test:db
```

option1:
- database.test.ts -> 测试数据库连接
option2:
- database.test_copy.ts -> 更复杂和全面的测试
### Options for Database Tests

Option 1: `database.test.ts`

Tests basic database connections.

Option 2: `database.test_copy.ts`

Includes more complex and comprehensive testing scenarios.

0 comments on commit 6b112c4

Please sign in to comment.