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
- Host: GitHub
- URL: https://github.com/mohamedsamara/go-postgres-docker
- Owner: mohamedsamara
- License: mit
- Created: 2023-09-14T01:33:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T06:07:06.000Z (over 1 year ago)
- Last Synced: 2025-01-03T10:23:29.754Z (6 months ago)
- Topics: docker, docker-compose, docker-hub, github-workflow, golang, postgresql
- Language: TypeScript
- Homepage:
- Size: 123 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)