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

https://github.com/jonathas/gin-rest-api

A REST API in Gin
https://github.com/jonathas/gin-rest-api

Last synced: 7 days ago
JSON representation

A REST API in Gin

Awesome Lists containing this project

README

          

# Gin REST API

This is a basic REST API I implemented using Gin while learning more about the framework.
This project also uses gorm and Postgres (via Docker).

## Starting the project

Start the DB:

```bash
docker compose -f ./resources/docker-compose.yml up
```

Run the tests:

```bash
go test
```

Start the server:

```bash
air
```

Ps: air provides live-reload for the server

Access the endpoint:

```bash
http://localhost:8080/students
```

A Postman collection can be found inside /docs