https://github.com/sivaprasadreddy/bookmarks-go
Bookmark Management application using GoLang
https://github.com/sivaprasadreddy/bookmarks-go
golang testcontainers testcontainers-go
Last synced: 4 months ago
JSON representation
Bookmark Management application using GoLang
- Host: GitHub
- URL: https://github.com/sivaprasadreddy/bookmarks-go
- Owner: sivaprasadreddy
- Created: 2021-12-02T11:34:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T10:14:56.000Z (over 1 year ago)
- Last Synced: 2024-12-15T11:21:39.384Z (over 1 year ago)
- Topics: golang, testcontainers, testcontainers-go
- Language: Go
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bookmarks Go
## Tools
* Live Reloading using [Air](https://github.com/cosmtrek/air)
* Static Analysis using [staticcheck](https://staticcheck.dev/)
```shell
$ go install github.com/cosmtrek/air@latest
$ go install honnef.co/go/tools/cmd/staticcheck@latest
```
## Run application
```shell
$ docker-compose up -d bookmarks-db
$ air
```
## Run application using docker-compose
```shell
$ docker-compose up --build -d
```
## Run tests
```shell
$ go test -v ./...
# Check coverage
$ GIN_MODE=release go test -v -coverprofile=coverage.out ./...
$ go tool cover -html=coverage.out
```
## Build the application
```shell
$ go build -o ./bin/bookmarks cmd/bookmarks/main.go
$ ./bin/bookmarks
$ open http://localhost:8080
```