A URL shortening service built with Node.js, Express, and EJS.
Clone this repository and npm install
inside of the project directory.
npm run start
. A PORT
environment variable can be specified, or 8080 is used as a default if none is set.
const PORT = process.env.PORT || 8080;
There is no data persistence for users and URLs.
There is no logic to check the validity of URLs being entered by users, so URLs missing protocols won't redirect.
- bcrypt to hash passwords
- body-parser to parse request bodies
- cookie-session to store session data on the client within a cookie
- ejs for templating
- express as a web server
URLs index for authenticated user
Tyler Krys made this.