Skip to content
Build your first Go website
Go CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
LICENCE
Procfile
README.md
go.mod
index.html
main.go

README.md

News Demo Application

Learn web development with Go. Live demo: https://freshman-news.herokuapp.com/

Here's what the completed application looks like:

demo

The code in this repo is meant to be a reference point for anyone following along with the tutorial.

Prerequisites

  • You need to have Go installed on your computer. The version used for the tutorial is 1.12.9.

  • Sign up for a News API account and get your free API key.

Get started

  • Clone this repository to your filesystem.

  • cd into it and run the following command: go run main.go -apikey=<your news api key> to start the server on port 3000.

  • View http://localhost:3000 in your browser.

You can’t perform that action at this time.