A simple web shortener made with oak and mongo.
You can find a live version of this project here.
The API endpoint is /shorten
, it takes url
as a query parameter and returns the shortened URL.
Example usage can be found here.
You can easily deploy this project to deno deploy.
- Fork the repository (and give it a star too!)
- Head on to deno deploy and login with your GitHub account.
- Select "WebShortener" from the list of repositories.
- Choose "main" as the branch, and "api/main.ts" as the entrypoint.
- Head on to the settings of your app and add your
MONGO_URL
- Vist the deployed app and enjoy!
This project is licensed under the MIT License.
Made with ❤️ by Aditya.