Files
cnd2025-hw3/README.md

72 lines
654 B
Markdown

# Testing Lab
## Backend
Fastify Server
### Set your environment variable
```bash
cd backend
cp .env.sample .env
```
### Development
Run a mongo container
```bash
docker run -d -p 27017:27017 mongo
```
Install dependencies
```bash
npm install
```
Start development mode
```bash
npm run dev
```
### Run the test
```bash
npm run test
```
## Frontend
React (by vite)
### Development
Install dependencies
```bash
npm install
```
Start development mode
```bash
cd frontend
npm run dev
```
Visit <http://localhost:5173>
### Run playwright test
```bash
npm run test:e2e
```
show playwright report
```bash
npx playwright show-report
```