ivan-marquez / Golang-Demo

Simple application demonstrating the integration of several popular Go packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Velocity Works Coding Demo

Golang-Demo

This Golang application consumes a JSON payload from https://www.data.gov/, populates a database and displays the database contents on a web page.

Frameworks used:

Setup

Create a .env file with the following variables:

POSTGRES_USER=user
POSTGRES_PASSWORD=admin
POSTGRES_DB=renewable_energy
DB_PORT=5432
DB_HOST=db

Run

The app is setup with Docker. Run it with docker-compose:

docker-compose up;

The app will be available in http://localhost:8080/renewables

About

Simple application demonstrating the integration of several popular Go packages

License:Apache License 2.0


Languages

Language:Go 67.0%Language:CSS 18.5%Language:HTML 14.5%