To continue with this tutorial, you must:
- Install Wrangler 2.
- Purchase the Workers Paid plan and enable Durable Objects by logging into the Cloudflare dashboard > Workers > Resources > Durable Objects.
npm install -g wrangler
Open your terminal and clone the Vietnamese-Spell-Checker-API repository:
git clone https://github.com/vietrux/Vietnamese-Spell-Checker-API.git
After you have cloned the repository, authenticate Wrangler by running:
wrangler login
When you are ready to deploy your application, run:
wrangler publish
Sample request:
curl -i -X GET "http://localhost:8787/?content=Xin chaof các bạn"
Sample response:
{
"result":[
"chaof"
]
}