Skip to content

Cwarcup/tinyapp

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).

Features

  • Uses cookies to track user sessions
  • Built in analytics
    • tracks the number of visits to a unique URL
    • tracks total number of visits to a URL
    • tracks IP addresses of visitors
    • tracks date and time of visits accessing a short URL
    • analytics are only visible to the user who created the URL
  • Permissions
    • only a user that creates a URL has authorization to edit and delete it
    • can only create a URL if they are logged in and registered with the site
  • Header contents are conditional on whether the user is logged in or not

Final Product

login page

edit a URL

errors

Dependencies

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

Getting Started

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

Test Data:

Has preset data in the database. See comments in express_server.js to remove predefined data.

Example Short URL: http://localhost:8080/u/abcd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published