Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/martinsmessias/go_rest_api

Go REST API
https://github.com/martinsmessias/go_rest_api

go golang golang-viper gorilla-mux gorm

Last synced: 4 days ago
JSON representation

Go REST API

Awesome Lists containing this project

README

        

# Go Rest API

#### Structure

```bash
├── controllers
│ └── controllers.go
├── database
│ └── db.go
├── dev.env
├── go.mod
├── go.sum
├── main.go
├── middleware
│ └── middleware.go
├── models
│ ├── config.go
│ └── personalities.go
└── routes
└── routes.go
```

## Stack used

**Backend:** Go

**Database:** Postgres

## Environment variables

To run this project, you will need to add the following environment variables to your .env

`dbhost`

`dbport`

`dbuser`

`dbname`

`dbpassword`