Giter Site home page Giter Site logo

sikenn / url-shortener Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 506 KB

A Freecode camp project for the backend certification

Home Page: https://url-shortener-sk.herokuapp.com/

JavaScript 75.42% HTML 24.58%
fcc fcc-certification nodejs express backend ejs javascript

url-shortener's Introduction

URL-shortener

A Freecode camp project for the backend certification

User Story

  1. I can POST to [project_url]/api/shorturl/new and i will receive a shortened URL in the JSON response like {original_url: "www.google.com", "short_url":1}

  2. If i pass an invalid URL that doesn't follow the http(s)://www.example.com(/more/routes) format,the JSON response will contain an error like {error: "invalid URL"} HINT: to be sure that the submitted url points to a valid site you can use the function dns.lookup(host, cb) from the dns core module.

  3. When i visit the shortened URL, it will redirect me to my original link.

Application link

url-shortener

url-shortener's People

Contributors

sikenn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.