Watson Translator with Node
An experiment with the IBM Watson Language Translator service using Node. This simple app uses the Language Translator to perform intelligent language translation; simply enter a message into the prompt to activate Watson.
The language model is set for English to Japanese, but can be changed in the config.js
file.
Requirements
-
Sign up for an IBM Cloud account or simply log in.
-
Create a Language Translator service.
-
Get the API key (will be used later in
.env
config).
Getting Started
-
Clone this repository.
git clone https://github.com/stevengregory/watson-translator-node.git cd watson-translator-node
-
Configure the environment settings.
Create a
.env
file and place it in the root of the project directory.touch .env
Add the API key from your IBM Watson service.
API_KEY=your_api_key
-
Install the npm packages.
npm install
-
Run the app!
npm start