New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/trietphm/gruber

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/trietphm/gruber

  • v0.0.0-20180312030929-96ea0e7ad0f1
  • Source
  • Go
  • Socket score

Version published
Created
Source

gruber Build Status

A simple API for gruber

Install

  • Golang
  • Postgresql. Create user and database gruber.
  • Cassandra. Create user and keyspace gruber:
CREATE KEYSPACE gruber WITH replication =  {'class': 'SimpleStrategy', 'replication_factor': '1'}  AND durable_writes = true;
  • Setup project:
  • Install postgresql migration tool goose: $ go get bitbucket.org/liamstask/goose/cmd/goose
  • Install cassandra migration tool migrate:
   $ go get -u -d github.com/mattes/migrate/cli github.com/gocql/gocql
   $ go build -tags 'cassandra' -o $GOPATH/bin/migrate github.com/mattes/migrate/cli
  • Install dep: $ go get -u github.com/golang/dep/cmd/dep
  • Update project dependencies: $ dep ensure
  • Create database in Postgresql and Cassandra before running migration.
  • Copy migration postgresql config example migration/postgresql/db/dbconf.yml.example to migration/db/dbconf.yml and update with properly config.
  • Update migration cassandra config migration/cassandra/migrate.sh.
  • Running migration Postgresql:
$ cd migration/postgresql
$ goose up
  • Running migration Cassandra:
$ cd migration/cassandra
$ ./migrate.sh up
  • Copy app config example config/dbconf.yml.example to migration/db/dbconf.yml and update with properly config.

Usage

  • Build app: go build -o gruber
  • Running:
  • With config file: ./gruber -config=config/configuration (the later configuration is config file's name without extension yaml)
  • Or running with ENV variable: ./gruber (see config/configuration.yaml.example for more information about ENV variables)

FAQs

Package last updated on 12 Mar 2018

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