Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
/ translationAPI Public archive

Small API to manage translations, designed with Android and iOS in mind

Notifications You must be signed in to change notification settings

Liftric/translationAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Small API to manage translations, designed with Android and iOS in mind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published