TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs. Works similarly to Bit.ly, TinyURL etcetera.
- Node.js
- Express
- EJS
- bcrypt
- body-parser
- cookie-session
- method-override
- Install all dependencies (using the
npm install
command). - Run the development web server using the
npm start
command. - Access TinyApp from browser at http://localhost:8080/
-
When creating a new url, any of the following formats will work: "example.com", "www.example.com", "http(s)://example.com", "http(s)://www.example.com"
-
If server is reset, delete cookies from browser manually through chrome devtools
- Mac: hold option + command + i to access cookies
- Windows/Linux: CTRL + Shift + i
-
For updated analytics to show please refresh page
- Creating seperate files for app.post and app.get routes
- No yet discovered major bugs
- Can cause errors when server is reset but cookies arent cleared (this can mostly be side stepped either by clearing to cookies and/or logging out after reset)