Web service to shorten urls.
OTHER License
Web service to shorten urls.
App running at: https://freecodecamp-lubien-shurl.herokuapp.com/
https://freecodecamp-lubien-shurl.herokuapp.com/new/{valid URL}
If you want a invalid URL, use:
https://freecodecamp-lubien-shurl.herokuapp.com/invalid/{valid URL}
Outputs example in sucess
{
"original_url": "http://google.com/",
"short_url": "https://freecodecamp-lubien-shurl.herokuapp.com/{integer}"
}
On fail, outputs a empty JSON.
https://freecodecamp-lubien-shurl.herokuapp.com/{integer}
npm install
for dependencies.
Create a file named .env
at the root of this project and set MONGODB_URL=
pointing to your MongoDB provider.
Run either npm start
or node server.js
.
MIT License.