berk-ozer / tinyapp

A web app to shorten long URLs, so your links are compact and pretty.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinyApp Project

Want to share funny cat videos on Twitter but your links are too long? Don't let that stop you from spreading joy!

TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs (à la bit.ly).

Because there can never be enough cat videos on the internet.

Final Product

"Screenshot of urls page"

"Screenshot of registration page"

"Screenshot of new url page"

Dependencies

  • Node.js
  • Express
  • EJS
  • bcrypt
  • body-parser
  • cookie-session

Getting Started

  1. Install all dependencies (using the npm install command).
  2. Run the development web server using the node express_server.js command.
  3. Go to localhost:8080 on your browser, enjoy!

How To Use TinyApp

Register/Login

Users must be logged in to create new links, view them, and edit them.

Just click Register on right top, put in your email and password, and you're good to go.

Create New Links

Either click Create a New Short Link in My URLs page, or Create New URL on navigation bar.

Then simply enter the long URL you want to shorten.

Edit or Delete Short Links

In My URLs, you can delete any link you want.

You can also click Edit, and then enter a new long URL to update your link. It will be the same short URL, but redirect to an updated long URL.

Use Your Short Link

The path to use any short link is /u/:shortLink. This will redirect you to the long URL.

You can also reach this by clicking edit on a link, and using the link corresponding to the short URL.

About

A web app to shorten long URLs, so your links are compact and pretty.


Languages

Language:HTML 56.1%Language:JavaScript 43.9%