/go-phonebook

A simple phonebook app using Golang and GORM.

Primary LanguageGo

Phonebook

A simple phonebook app using Golang and GORM.

Development: Getting Started

Requirement

  • go 1.13+
  • PostgreSQL
  • Docker
  • Docker Compose

Prepare Workspace

Clone Project

$ git clone https://github.com/codephilics/go-phonebook.git
$ cd go-phonebook

Create .env:

$ nano .env

Set .env values:

POSTGRES_URL=postgres://postgres:yourpassword@postgres/postgres?sslmode=disable
PORT=8080

To run the project

$ docker-compose up