Tidak Ada Deskripsi

Piotr Czajkowski 9fcfbdff87 Refactor plus fix for number of results 7 tahun lalu
html 734cded5e3 Getting more OO, added some tests 8 tahun lalu
log 8c7a06f987 first commit 8 tahun lalu
testFiles 734cded5e3 Getting more OO, added some tests 8 tahun lalu
README.md c6676f1ab8 Added go report 7 tahun lalu
app.go b2718290be Checking status code of login connection 7 tahun lalu
app_test.go 734cded5e3 Getting more OO, added some tests 8 tahun lalu
logger.go 196ec8a572 Better log file names 7 tahun lalu
search.go 9fcfbdff87 Refactor plus fix for number of results 7 tahun lalu
search_test.go f3d9c48223 Added proper comments, improved some style 7 tahun lalu
secrets.json 8c7a06f987 first commit 8 tahun lalu
server.go f3d9c48223 Added proper comments, improved some style 7 tahun lalu
tm.go f3d9c48223 Added proper comments, improved some style 7 tahun lalu
tm_test.go 734cded5e3 Getting more OO, added some tests 8 tahun lalu

README.md

TM Search for memoQ Server

Go Report Card

This is a proof-of-concept tool (hobby project) which utilizes memoQ server Resources API.

It provides simple HTML interface which of course can be improved. There's also logging mechanism which collects requestor's IP, phrase he was searching for, target language and number of served results. Logs are saved in log subfolder in separate .log files (one per day) in CSV format.

You just need to build it and make sure that subfolders html and log are present in the same location as your binary. You'll also need secrets.json, just make sure you fill it with proper credentials. Account used needs to be able to list TMs on your server and read their content, of course. It's using only standard GO packages, so there are no external dependencies.

Usage is simple. To get started just launch compiled binary with -b switch followed by the URL of your Resources API. Now just navigate to localhost/ in your browser and start searching your TMs. You may also want to adjust html/languages.json to be more relevant to your environment.

Optional parameters are as follows:

  • h - if you want to serve it under hostname different than localhost
  • p - if you want to serve it on port different than 80

You can also navigate to localhost/tms to list all your TMs or to localhost/tms?lang=fre-FR to list TMs for given language.

This app was designed to be used on local network or via VPN, so it lacks any security which would be necessary when exposed to Internet. It was also never tested under heavy load. You're free to use it however you wish, but I take no responsibility for any possible damage caused by it.