TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs (ร la bit.ly
).
- Clone the repo.
- Move to the root directory of the project.
$ cd tinyapp
- Install dependencies.
$ npm install
- Run the development web server.
$ node express_server.js
Helper functions tested with the following tools:
To run (with both Mocha and Chai installed):
$ npm test
runs the following command: ./node_modules/mocha/bin/mocha
.
- Authentication/authorization using
bcrypt
andcookie-session
. /urls
page:- Shortened URLs saved for the authenticated user
/urls/:id
page:- Form for editing the selected URL.
- Tracks the total number of times a link has been visted.
- Tracks the number of unique visits per link (currently only tracks unique visits from registered users).
- Lists every visit to the URL (visitor ID and timestamp).
/urls/new
page:- Form for submitting a new url to be shortened.
- This is a project created for learning purposes as part of the Web Development program at Lighthouse Labs.
- No database is used. All data is transiently saved in memory.