https://github.com/extwiii/urlshortener
URL SHortoner API
https://github.com/extwiii/urlshortener
expressjs extwiii javascript mongodb mongoose nodejs url url-shortener valid-url
Last synced: 2 months ago
JSON representation
URL SHortoner API
- Host: GitHub
- URL: https://github.com/extwiii/urlshortener
- Owner: extwiii
- License: apache-2.0
- Created: 2016-09-06T14:32:39.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T01:14:36.000Z (over 9 years ago)
- Last Synced: 2025-01-28T12:17:02.940Z (over 1 year ago)
- Topics: expressjs, extwiii, javascript, mongodb, mongoose, nodejs, url, url-shortener, valid-url
- Language: HTML
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# URL Shortener Microservice
### User stories:
1. I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
2. When I visit that shortened URL, it will redirect me to my original link.
## Example usage:
```url
https://extwiii-urlshortener.herokuapp.com/new/https://www.google.com
https://extwiii-urlshortener.herokuapp.com/new/https://www.twitter.com
```
## Example output:
```json
{"originalUrl":"http://www.google.com","shortUrl":"https://extwiii-urlshortener.herokuapp.com/685"}
{"originalUrl":"http://www.twitter.com","shortUrl":"https://extwiii-urlshortener.herokuapp.com/985"}
```
## Usage:
```url
https://extwiii-urlshortener.herokuapp.com/985
```
## Will redirect to:
```url
https://twitter.com/
```
## Tools / Techniques
- Node.js
- Express.js
- MongoDB
- Mongoose
- valid-url
Difficulty :full_moon::full_moon::full_moon::full_moon::full_moon::full_moon::full_moon::new_moon::new_moon::new_moon:
### Created By Bilal Cagiran | [E-Mail](mailto:bcagiran@hotmail.com) | [Github](https://github.com/extwiii/) | [LinkedIn](https://linkedin.com/in/bilalcagiran) | [CodePen](http://codepen.io/extwiii/) | [Blog/Site](http://bilalcagiran.com) | [FreeCodeCamp](https://www.freecodecamp.com/extwiii)