Skip to content

A simple URL shortner written in Deno and Using Deno KV

License

Notifications You must be signed in to change notification settings

n4ze3m/deno-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deno Shortner

A simple URL shortner written in Deno. Application is using Deno KV store to store the shortned URL and redirect to the original URL. All the shortned URL will expire after 1 day.

Usage

deno run --allow-read --allow-net --unstable .\server.ts

This will start the server on port 8000.

API

POST /create

Create a new short URL.

curl -X POST -H "Content-Type: application/json" -d '{"url":"https://www.google.com"}' http://localhost:8000/create

GET /:id

Redirect to the original URL.

curl -X GET http://localhost:8000/:id

License

MIT

About

A simple URL shortner written in Deno and Using Deno KV

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published