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

github.com/earthrise-media/plastics/api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/earthrise-media/plastics/api

  • v0.0.0-20220402003608-dd7d409bc1be
  • Source
  • Go
  • Socket score

Version published
Created
Source

Plastics API

Building

Building requires Go v 1.15+ and a simple:

go build .

Testing

Testing needs a PostGIS database. The easiest way is:

docker run -e POSTGRES_DB=plastic -e POSTGRES_USER=postgis -p 5432:5432 -e POSTGRES_PASSWORD=password -d mdillon/postgis

Then: go test

Running

Configuration can be set in the environment, the cli or a config file. See Viper's Automatic Env docs for more info. This service exposes the following configuration options:

ConfigDefaultDescription
PORT8080listening port
PGHOSTlocalhostdatabase hostname or IP
PGPORT5432port database is listening on
PGDATABASEplasticname of database
PGUSERpostgisdatabase username
PGPASSWORDpassworddatabase password
LOG_LEVELDEBUGone of TRACE, DEBUG, INFO, WARN, ERROR
SITE_MATCH_DISTANCE_METERS1000the distance within which sites will be considered the same site
ADMIN_USERadminan admin user who can perform destructive actions
ADMIN_PASSWORDplasticsadmin user password

Endpoints

See OpenAPI docs here

FAQs

Package last updated on 02 Apr 2022

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