šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/liftric/translationapi

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/liftric/translationapi

v0.0.0-20191114100244-d992ace937a3
Source
Go
Version published
Created
Source

Translation API 2

Translation API written in Go.

Routes

You can check out the different routes of the API here.

Running

For running the api a database is necessary. If you don't specify a database, it will create a sqlite database in /tmp. To configure the database connection, the following environment variables are used:

  • DATABASE_TYPE (sqlite3, mysql or postgres)
  • DATABASE_HOST
  • DATABASE_PORT
  • DATABASE_NAME (if database type is sqlite3 this is the path to the database file)
  • DATABASE_USER
  • DATABASE_PASSWORD
  • DATABASE_SSL (for mysql and postgres connection, default is disable/false)
  • FRONTEND_URL (necessary for cors, default http://localhost:3000 for local development)

Easiest way of deploying is running it in a container. For building a container image you can have a look in the gitlab-ci.yml.

FAQs

Package last updated on 14 Nov 2019

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