blakegreendev / sst-url-shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edit in Eraser

SST URL Shortener

Deployed the following API endpoint:

https://5ps585eku8.execute-api.us-east-1.amazonaws.com

For example, this endpoint takes in a body of:

{"url":"https://google.com"}

The setUrl lambda function takes in the original url and then creates a uuid and then stores it in Dynamodb with the API endpoint appended with the uuid.

The getUrl lambda function takes in the code or uuid and will automatically redirect to the original url. For example,

https://5ps585eku8.execute-api.us-east-1.amazonaws.com/75c9ccd1

The Dynamodb table is modeled with ElectroDB.

Diagram

Figure 1

Todo

  • Build a frontend with a form

About


Languages

Language:TypeScript 90.4%Language:JavaScript 5.2%Language:CSS 4.4%