https://github.com/0xvbetsun/todo-app
Simple todo-app with documentation and e2e testing via Postman
https://github.com/0xvbetsun/todo-app
go golang newman openapi postman todo-app
Last synced: about 1 month ago
JSON representation
Simple todo-app with documentation and e2e testing via Postman
- Host: GitHub
- URL: https://github.com/0xvbetsun/todo-app
- Owner: 0xvbetsun
- License: mit
- Created: 2022-04-23T20:56:19.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-20T21:52:16.000Z (over 2 years ago)
- Last Synced: 2026-01-26T10:54:28.529Z (2 months ago)
- Topics: go, golang, newman, openapi, postman, todo-app
- Language: Go
- Homepage: https://pkg.go.dev/github.com/vbetsun/todo-app
- Size: 1.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Todo App
The project represents the configuration and setup basic server for TODO application with auto-testing and OpenAPI specification from postman's collection

[](https://goreportcard.com/report/github.com/vbetsun/todo-app)

[](https://github.com/vbetsun/todo-app)
[](https://pkg.go.dev/github.com/vbetsun/todo-app)
## Prerequisites
- Git
- Docker
- Docker Compose
## How to Install
Clone from github and navigate to the project's folder
```sh
# HTTPS
git clone https://github.com/vbetsun/todo-app.git
# SSH
git clone git@github.com:vbetsun/todo-app.git
cd todo-app
```
## How to Deploy
```sh
cp ./deployments/.env.example ./deployments/.env
```
change env variables for your needs
```dotenv
PORT=8000 # port for serving API
DOCS_PORT=8080 # port for serving OpenAPI documentation
POSTGRES_HOST=localhost # host of postgre db
POSTGRES_PASSWORD=someStr0ngPass # password to psql
```
and start the application via `docker compose`. It should start the API server, PostgreSQL database, pgAdmin and OpenAPI documentation, which you can see on http://localhost:${DOCS_PORT}
```sh
docker compose -f ./deployments/docker-compose.yml up -d
```
after that you have to run migrations
```sh
make migrate-up
```
## Database structure

## How to Test
for testing our API we're going to use POstman collection via Newman
```sh
make test-e2e
```