A simple Express.js project that shortens URLs with user authentication using JWT.
- User signup/login
- Shorten URLs
- Redirect from short links
- Session via cookies
- Node.js
- Express
- MongoDB
- EJS
git clone https://github.com/akshW88/url-shortener.git
cd url-shortener
npm installCreate a .env file in root dir with
JWT_SECRET=your_jwt_secret_keyHave MongoDB run locally at
mongodb://127.0.0.1:27017/short-url-project
npm start