TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs (à la bit.ly).
- Node.js
- Express
- EJS
- bcryptjs
- cookie-session
- Install all dependencies (using the
npm install
command). - Run the development web server using the
node express_server.js
command.
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.
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.
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.
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.