# TCMS

## Quick Start

### 1. Install and setup requirements

```sh
# Setup Database:
make run-tidb # or MySQL: `brew services start mysql`
# Load fixture data:
mysql -uroot -e 'create database _test_infra'
mysql -uroot _test_infra < db/schema.sql

# Setup Meilisearch
make run-meilisearch
```

### 2. Run Backend service and UI

```sh
# Backend
make build
./bin/{OS}/{ARCH}/tcms
open http://localhost/swagger/index.html

# UI
cd ui
yarn && yarn start
```

## Test

```sh
make test
```

## 部署

已部署到 4.180 集群： <https://tcms.pingcap.net/swagger/index.html>

部署方式见：[deploy/README.md](deploy/README.md)

### Staging

Staging 服务在 4.67 集群：<http://172.16.4.67:30006/swagger/index.html>
