TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs (à la bit.ly). It was built as part of Lighthouse Labs' Web Development bootcamp.
- Node.js
- Express
- EJS
- bcrypt
- body-parser
- cookie-session
- method-override
- Can serve app in a subdirectory such as example.com/tinyapp
- Analytics
- Keeps track of how many times a given short URL is visited
- Keeps track of unique visitors for each URL
- Keeps track of every visit (timestamp, and a generated visitor_id), displayed on the URL edit page
- Has a 'Hot' page with the most popular short URLs
- Install all dependencies (using the
npm install
command) - If serving the app in a subdirectory (i.e. example.com/tinyapp), set the environmental variable
TINYAPP_BASE_URL
appropriately (i.e. /tinyapp/) - (Optional) Set server port with environmental variable
TINYAPP_PORT
(default is 8080) - Run the development web server using the command
node express_server.js
with your favourite service manager