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

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

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
```