https://github.com/codingnagger/cloudready-todolist-blog-example
https://github.com/codingnagger/cloudready-todolist-blog-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingnagger/cloudready-todolist-blog-example
- Owner: CodingNagger
- Created: 2020-10-29T12:04:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T18:51:58.000Z (over 5 years ago)
- Last Synced: 2023-12-09T12:27:28.702Z (about 2 years ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```