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

https://github.com/kenmwaura1/go-todo-api

A REST api in Go
https://github.com/kenmwaura1/go-todo-api

fiber-framework golang gorm postgresql

Last synced: 6 months ago
JSON representation

A REST api in Go

Awesome Lists containing this project

README

          

# go-todo-api

[![Docker Image CI](https://github.com/KenMwaura1/go-todo-api/actions/workflows/docker-image.yml/badge.svg)](https://github.com/KenMwaura1/go-todo-api/actions/workflows/docker-image.yml)

A REST api in Go utilizing Fiber, Postgres and docker as a dev tool.

Allows user to create and retrive todos

## Installation

Ensure you have the following installed:

* [Go](https://golang.org/doc/install)
* [Fiber](https://github.com/gofiber/fiber)
* [Postgres](https://www.postgresql.org/download/)
* [Docker](https://www.docker.com/)
* [Docker Compose](https://docs.docker.com/compose/install/)

## Usage

To run the api:

```shell
docker-compose up
```

## Endpoints

You can use the swagger file to check and test the endpoints we just created for this app.
To test the endpoints, I recommend you to download an HTTP client like [Insomnia](https://insomnia.rest/).

## Contribute

Please feel free to contribute!