Skip to content

URL shortening service similar to TinyURL, Bitly, or Goo.gl. In essence, a URL Shortener is a service that takes a regular URL and transforms it into an encoded version, which redirects back to the original URL.

Notifications You must be signed in to change notification settings

raubersn/tinyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyApp Project

TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs (à la bit.ly). In essence, a URL Shortener is a service that takes a regular URL and transforms it into an encoded version, which redirects back to the original URL.

Final Product

"screenshot of URLs page" "screenshot of creating a short URL" "screenshot of editing a short URL"

Dependencies

  • Node.js
  • Express
  • EJS
  • bcryptjs
  • cookie-session

Getting Started

  • Install all dependencies (using the npm install command).
  • Run the development web server using the node express_server.js command.

Analytics (Stretch)

The editing page of a short URL will present the following metrics:

  • Number of total visit
  • Number os visits by unique users
  • Log of all the visits received, containing when and who made it
    • If a logged user visited the URL, their ID will be listed
    • If the user is unknow, their IP is listed instead

RESTful API (Stretch)

TinyApp implements a RESTful API following the routing conventions:

GET /urls

  • Retrieves the collection of URLs to the logged in user.
  • Renders a representation of the collection

POST /urls

  • Creates a new URL using the provided request body
  • Redirects to a route where the new URL can be viewed

GET /urls/:id

  • Retrieves the URL with the specified id
  • Renders a representation of the URL
  • Responds with a 404 - Not Found error if the URL doesn't exist

PUT /urls/:id

  • Updates a specific URL using the provided request body
  • Redirects to a route where the updated URL can be viewed
  • Responds with a 404 - Not Found error if the User doesn't exist

DELETE /urls/:id

  • Deletes a specific URL
  • Redirect to the index of the collection
  • Responds with a 404 - Not Found error if the User doesn't exist

About

URL shortening service similar to TinyURL, Bitly, or Goo.gl. In essence, a URL Shortener is a service that takes a regular URL and transforms it into an encoded version, which redirects back to the original URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published