/Golang-Demo

Simple application demonstrating the integration of several popular Go packages

Primary LanguageGoApache License 2.0Apache-2.0

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