🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/newmohib/goLang-app-rss-feed-scraper

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/newmohib/goLang-app-rss-feed-scraper

v0.0.0-20241209125808-3016d6744485
Version published
Created

GoLang Sample app for RSS Feed

Tutorial

initialize project

  • go mod init projectname

build and run

  • go build && ./goLang-app-rss-feed-scraper

added env config package

  • go get github.com/joho/godotenv

create vendor dir

  • go mod vendor

clean mod file

  • go mod tidy

run query

  • sqlc generate

migration

  • goose postgres postgres://postgres:postgres@localhost:5432/go-rssagg-app up

install http module

  • go mod tidy

  • go mod vendor

  • go get -u github.com/go-chi/chi/v5

  • go get github.com/go-chi/cors

  • both are need for database

    • go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
    • go install github.com/pressly/goose/v3/cmd/goose@latest
  • add posgres driver

    • go get github.com/lib/pq

FAQs

Package last updated on 09 Dec 2024

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