This project is simple CRUD application built in golang and using PostgreSQL as DB.
- Install golang v1.11 or above.
- Install PostgreSQL v10 or above.
- Create Database and table
CREATE TABLE users (
userid SERIAL PRIMARY KEY,
name TEXT,
age INT,
location TEXT
);
docker build --target development -t golang:dev .
docker build --target production -t golang:prod .
docker run -it --rm -p 8080:8080 golang:dev
docker run -it --rm -p 8080:8080 golang:prod