go-scraper

command module
v0.0.0-...-5b323e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 3 Imported by: 0

README

Go Scraper

Demo

Prerequisite

Usage

Clone the repository

git clone git@github.com:nimblehq/git-template.git

Install development dependencies

This project uses the following dependencies:

Install them by running:

  make install-dependencies
Run the Go application for development
  make dev

The application will be run on http://localhost:8080

Run tests
  make test
Deploy to Heroku with Terraform
Prerequisites

To deploy the application to Heroku with Terraform, we need to create the Heroku API Key first:

$ heroku authorizations:create --description <api key description>

And then, move to the deploy/heroku folder and run the following steps:

Step 1: Copy the variable file and update the variables

$ cp terraform.tfvars.sample terraform.tfvars

Step 2: Initialize Terraform

$ terraform init

Step 3: Generate an execution plan

$ terraform plan

Step 5: Execute the generated plan

$ terraform apply

Step 6: Build the application and push to heroku

You can check .github/workflows/deploy.yml workflow for more details

Make sure you set the following Github secrets before deploying the application:

DOCKER_TOKEN       # Docker token
HEROKU_API_KEY     # Heroku OAuth token
HEROKU_APP_PROD    # Heroku app name for production
HEROKU_APP_STAGING # Heroku app name for staging

About

This project is created to complete Web Certification Path using Go at Nimble

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL