This is a basic backend API service for a sign language translation tool, implemented using Node.js and Express. It provides a single endpoint for translating English text input into a simulated sign language translation.
Translates the provided English text into sign language (simulated).
Request Body:
{
"text": "Your English text here"
}
Success Response:
- Code: 200
- Content:
{
"message": "Translation successful",
"result": "Translated: Your English text here"
}
Error Response:
- Code: 400
- Content:
{
"error": "No text provided"
}
-
Make sure you have Node.js installed on your system.
-
Install the required dependencies:
npm install express body-parser
-
Run the application:
npm start
The API will be accessible at http://localhost:3000/translate
.