23 lines
916 B
Markdown
23 lines
916 B
Markdown
# News Demo Application
|
|
|
|
Learn web development with Go. Live demo: https://freshman-news.herokuapp.com/
|
|
|
|
Here's what the completed application looks like:
|
|
|
|

|
|
|
|
The code in this repo is meant to be a reference point for anyone following along with the [tutorial](https://freshman.tech/web-development-with-go/).
|
|
|
|
## Prerequisites
|
|
|
|
- You need to have Go installed on your computer. The version used for the tutorial is **1.15.3**.
|
|
|
|
- Sign up for a [News API account](https://newsapi.org/register) and get your free API key.
|
|
|
|
## Get started
|
|
|
|
- Clone this repository to your filesystem.
|
|
- 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.
|