An open API service indexing awesome lists of open source software.

https://github.com/zaru/go-echo-api-test-sample


https://github.com/zaru/go-echo-api-test-sample

echo golang

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# Golang WebAPI server testing sample

- WAF: echo v3
- DB: PostgreSQL
- sqlx
- Test tool
- stretchr/testify/assert
- DATA-DOG/go-sqlmock

## Init

### Docker

```
docker-compose up -d
```

### DB schema

```
create table users (
id SERIAL,
name varchar
) ;
```
### Start echo server

```
realize start
```

### Test

```
go test ./...
```