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
- bcrypt
- body-parser
- cookie-session
- morgan
Dev dependencies include :
- mocha
- chai
- nodemon
- Install all dependencies (using the
npm install
command). - Run the development web server using the
node express_server.js
command.
Be aware when perusing or testing the app, the following error could occur when running your own server. If you:
- Register a new user and they are logged in.
- Refresh the server and then refresh the browser.
- An error will occur as the cookies for the session are still set (since the user didn't log out properly), but since the server reset also, there is no longer a record of the new user in the database (because we aren't using a REAL database). In that case the cookies need to be cleared manually, but everything works as per normal there.