Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

treble-ai/spellchecker

Repository files navigation

treble.ai's technical test v1.1.4 - Part 2

This is a serverless project, refer to the serverless installation guide to resolve the requirements needed to run this project. It is not needed that the project is deployed to the cloud. It is enough that the project runs locally, please use the serverless offline plugin to achieve this.

Once everything is setup correctly. You should be able to run:

$ serverless offline

And get something like this:

offline: Starting Offline: dev/us-east-1.
offline: Offline [http for lambda] listening on http://localhost:3002

   ┌─────────────────────────────────────────────────────────────────────────┐
   │                                                                         │
   │   POST | http://localhost:3000/dev/spellcheck                           │
   │   POST | http://localhost:3000/2015-03-31/functions/hello/invocations   │
   │                                                                         │
   └─────────────────────────────────────────────────────────────────────────┘

offline: [HTTP] server ready: http://localhost:3000 🚀
offline: 
offline: Enter "rp" to replay the last request

offline: POST /dev/spellcheck (λ: hello)

To test that the endpoint is working correctly use cURL:

$ curl http://localhost:3000/dev/spellcheck> -X POST -d '{ "text": "un lgar para la hopinion"}'
{ "text" : "un lugar para la opinión" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages