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

https://github.com/codingnagger/cloudready-todolist-blog-example


https://github.com/codingnagger/cloudready-todolist-blog-example

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# cloudready-todolist-blog-example

Just a repository used as an example for a blog post I'm writing. Also using it to try and find my Go project structure style.
Lots of inspiration taken from [https://github.com/katzien/go-structure-examples](https://github.com/katzien/go-structure-examples).

Basically a todolist server to create, list and complete tasks.

## How to run?

### Running tests

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

### Run the server

```bash
# Startup the local stack
TMPDIR=./deployment/local/tmp PORT_WEB_UI=8181 docker-compose -f ./deployment/localstack/docker-compose.yml up

# Create table
AWS_PROFILE=localdev go run -v ./cmd/init/table -endpoint http://localhost:4566

# Build application
go build -v ./cmd/server/

# Start application
AWS_PROFILE=localdev ./server -endpoint http://localhost:4566
```