https://github.com/xditya/webshortener
Lightweight Link Shortener.
https://github.com/xditya/webshortener
link-shortener link-shortener-api
Last synced: about 1 month ago
JSON representation
Lightweight Link Shortener.
- Host: GitHub
- URL: https://github.com/xditya/webshortener
- Owner: xditya
- License: mit
- Created: 2023-07-31T16:54:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T14:26:17.000Z (over 1 year ago)
- Last Synced: 2025-04-01T21:12:52.573Z (about 2 months ago)
- Topics: link-shortener, link-shortener-api
- Language: CSS
- Homepage: https://short.xditya.me/
- Size: 117 KB
- Stars: 24
- Watchers: 2
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebShortener
A simple web shortener made with [oak](https://deno.land/x/oak) and [mongo](https://mongodb.com).# Live Version
You can find a live version of this project [here](https://short.xditya.me).# API
The API endpoint is `/shorten`, it takes `url` as a query parameter and returns the shortened URL.
Example usage can be found [here](./public/script.js).# Deploying
You can easily deploy this project to [deno deploy](https://deno.com/deploy).
1. Fork the repository (and give it a star too!)
2. Head on to [deno deploy](https://deno.com/deploy) and login with your GitHub account.
3. Select "WebShortener" from the list of repositories.
4. Choose "main" as the branch, and "api/main.ts" as the entrypoint.
5. Head on to the settings of your app and add your `MONGO_URL`
6. Vist the deployed app and enjoy!# License
This project is licensed under the [MIT License](./LICENSE).# Credits
Made with ❤️ by [Aditya](https://xditya.me).