Skip to content

thibaultleouay/connectrpc-hono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlShortener

This project was created using npm create cloudflare@2. It uses the wrangler cli tool to manage the project.

Server

To start the server, run npm start. This starts a local development server.

Test

npm run test

Run the unit tests via node. They also showcase the worker in action. See url-shortener.spec.ts for more details.

Other helpful commands

npm run generate

Use buf to generate the compiled protos via Protobuf-ES and Connect.

npm run deploy

Deploys the worker to Cloudflare. This requires wrangler.toml file with the appropriate credentials.

Test the worker

curl -H "Content-Type: application/json" -d '{"url":"https://www.google.com"}' http://localhost:8787/urlshortener.v1.UrlShortenerService/Shorten

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published