https://github.com/knwoop/lets-gnomock
https://github.com/knwoop/lets-gnomock
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/knwoop/lets-gnomock
- Owner: knwoop
- Created: 2021-01-06T06:48:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-23T12:07:30.000Z (about 5 years ago)
- Last Synced: 2025-10-31T07:47:34.934Z (8 months ago)
- Language: Go
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lets-gnomock
## set env vars
```shell script
$ direnv allow
```
## set up
```shell
$ docker-compose up
$ make migrateup
$ go run ./cmd/server/main.go
```
## curl api
```shell
$ curl -s -XPOST -d "{\"username\":\"foo\"}" http://localhost:8080/create
```
You can use this If you have `jo` cmd.
```shell
$ curl -s -XPOST -d "$(jo username=foo)" http://localhost:8080/create
```
## Play Gnomock TEST
```shell
$ go test -v -race ./... -run TestUserService_Create
```