Skip to content

Freshman-tech/news-demo

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

News Application Demo

Learn how to develop web applications with Go by building a News application.

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 to test the code in this repository is 1.15.3.

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

Get started

  • Clone this repository to your filesystem.
$ git clone https://github.com/Freshman-tech/news-demo
  • Rename the .env.example file to .env and enter your News API Key.
  • cd into it and run the following command: go build && ./news-demo to start the server on port 3000.
  • Visit http://localhost:3000 in your browser.