Skip to content

iamjem/go-screenscrape-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains a simple screen scrape CLI written in Go. You can read the full blog post here.

Environment Variables

The CLI uses the following environment variables:

DEBUG=true
DATABASE_URL=user=youruser dbname=yourdbname sslmode=disable
EMAIL_FROM=fromuser@gmail.com
EMAIL_HOST=smtp.gmail.com
EMAIL_HOST_PASSWORD=emailpassword
EMAIL_HOST_USER=hostuser@gmail.com
EMAIL_PORT=587
EMAIL_TO=touser@gmail.com

Database Setup

This skeleton is configured to use Postgres. Change lib/db.go if you prefer something else.

To run migrations with goose run goose -env development up.

Running the CLI

This project uses godep for dependency management.

  1. Clone the repository and cd into it.
  2. Run godep go install to build and install binary.
  3. Run ./run_screenscrape

About

An example screen scraping CLI in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published