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

https://github.com/mohamedsamara/go-postgres-docker

Go & Postgres & Docker
https://github.com/mohamedsamara/go-postgres-docker

docker docker-compose docker-hub github-workflow golang postgresql

Last synced: 4 months ago
JSON representation

Go & Postgres & Docker

Awesome Lists containing this project

README

        

# Go Postgres Docker

## Features

- Go REST API's
- Database connection with PostgreSQL
- Serving frontend static files using Go
- Pinia to store API data on frontend
- Dockerized Go backend

## Quick start

1. Clone this repo using `git clone https://github.com/mohamedsamara/go-postgres-docker.git`
2. Move to the directory: `cd `.

## Setup frontend

This will install frontend dependencies and create a build (`dist`)

```
make static
```

## Run Go backend

```
go run *.go
```

## Steps to run in Docker container

### Build Image

```
make build
```

### Run container

```
make run
```

See [Makefile](/Makefile)