A simple link shortener API
I used bun in this project to install and manage dependencies.
- Clone the repository
git clone https://github.com/meiazero/link-shortener-api && cd link-shortener-api
- Install dependencies
bun install
-
Create a
.env
file in the root of the project copy the content of.env.example
and replace the values with your own. -
Run the development server
bun dev
Create a new short link
{
"code": "example",
"url": "https://example.com"
}
Redirect to the original link
Get all links
Get all links analytics
This project is licensed under the MIT License - see the LICENSE file for details.