Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/samvimes01/news-api-go-app

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/samvimes01/news-api-go-app

  • v0.0.0-20231109122621-e3f1f610cc19
  • Source
  • Go
  • Socket score

Version published
Created
Source

News Demo go app

All credits to @freshman starter files

Tutorial: https://freshman.tech/web-development-with-go/

demo

What was changed:

  • X-Api-Key in request header instead of query
  • input maxlength as per API specs
  • Dockerfile.dev for air live reload
  • Dockerfile for deploying to fly.io

TODO - refactor noodles into several files

Prerequisites

You need to have Go installed on your computer. Or you may use docker and docker compose for dev purpose

Get started

  • Clone or download this repository to your filesystem.
$ git clone https://github.com/samvimes01/news-api-go-app
$ cd news-api-go-app
$ docker compose up
  • Deploy is possible to fly.io. It automativally detects Dockerfile. Without it assets aren't deployed and app fails
$ fly auth login
$ flyctl launch // No for deploy since there are env secrets
$ fly secrets set NEWS_API_KEY=blah // het your key at newsapi.org; secrets are available ar runtime as env vars
$ flyctl deploy

FAQs

Package last updated on 09 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc