https://github.com/milo-brt/url-shortener
A DIY URLs Shortener
https://github.com/milo-brt/url-shortener
nodejs personal url-shortener
Last synced: 3 months ago
JSON representation
A DIY URLs Shortener
- Host: GitHub
- URL: https://github.com/milo-brt/url-shortener
- Owner: milo-brt
- Created: 2025-03-01T19:05:04.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-03-03T15:37:14.000Z (3 months ago)
- Last Synced: 2025-03-03T16:38:42.106Z (3 months ago)
- Topics: nodejs, personal, url-shortener
- Language: JavaScript
- Homepage: https://urls.milobrt.fr
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL Shortener [personnal project]
🇫🇷 Pour la version française, [c'est ici](README_fr.md)
## Description
`Express.js` application that allows you to create and delete custom URL shortcuts in real-time.
For example, if you have a long URL like `www.google.com/search?q=url+shortener&.....`, you can shorten it to `mysite.com/{your choice}` and share it more easily.
The application also records the creation date and the number of visits for each shortcut. Everything is stored in a `MongoDB` database.
**[ Note ]**: The application is designed to be hosted alongside other applications on a server. To use it, you need to encapsulate it in a `Server` from the `http NodeJs` module.
## Authentication
To prevent anyone from creating or deleting shortcuts with your domain, the application is protected by an authentication system using `Passport.js`. It uses my own identity provider which also handles the authorization process, but you can easily replace it with another one thanks to `Passport.js` strategies.
## Demonstration
Here is what the application's interface looks like:
You can test it with the following demo account (read-only access):
Select "login with email"
- **Username**: `[email protected]`
- **Password**: `Demo123!`It is currently hosted [here](https://urls.milobrt.fr)