|Elnu 5896f27c44 Update repository links||1 month ago|
|.gitignore||7 months ago|
|LICENSE||7 months ago|
|README.md||7 months ago|
|ecosystem.config.js||7 months ago|
|index.js||5 months ago|
|package-lock.json||7 months ago|
|package.json||1 month ago|
Access-Control-Allow-Origin: * set to circumvent this issue. I am hosting this at tatoeba.elnu.com until Tatoeba has a proper API implementation.
For information about API usage, see the official documentation.
This API mirror is a mirror of
https://tatoeba.org/eng/api_v0/search. So, for example,
https://tatoeba.org/en/api_v0/search?query=dog can be rewritten to
https://tatoeba.elnu.com/?query=dog if you are using the version of the API I am hosting. For self-hosting, see Self-hosting.
tatoeba-api requires Node.js and npm.
Install the depenedencies:
Run tatoeba-api at port 3000 (the default):
Run tatoeba-api at port 5000:
node index.js 5000
tatoeba-api can be easily run as a background process using pm2.
npm i pm2 -g
The configuration for pm2 is stored in ecosystem.config.js, which by default sets it to run at port 5000 instead of 3000. To change the port, open this file and change the
For running starting the API at boot and more, see the pm2 documentation.