Spell Checker Server
API providing spell checker service.
Build
PhantomJS is needed for the server. Just run ./get-phantomjs.sh
.
Run the following command to build the Docker image.
docker build -t spell-checker-server .
Run
docker run -d -p 8082:80 --log-opt max-file=8 --log-opt max-size=8m --name spell-checker-server spell-checker-server
This will open an HTTP server on port 8082. Try the following for a demonstration.
curl -H "Content-Type: application/json" -X POST -d '{"word": "Googel"}' localhost:8082/spell-check