- Email : demo@gmail.com
- Password : Demo@123
- cors
- dotenv
- express
- mongodb
- mongoose
- nodemon
- bcrypt
- jsonwebtoken
- nodemailer
- /register - to register user
- /login - to login user
- /forgot - to send reset password link to mail
- /reset - to reset password
- /activation/:id - to activate account
- /addUrl - to add long url to the database
- /shortUrl - to add short url to the database
- /getUrl/:string - to redirect short url to the long url
- /getUrl - to get all urls created
- /count - to get the count of total number of urls created
- finding if user already registered with the emailid
- encrypting user password
- creating object with user details
- adding user to the db
- composing mail
- creating transport to send mail
- sending mail to activate account
- checking is user email is registered
- validating password with email
- checking if account is active or not
- token is generated and passed as response
- if account is not active
- composing mail
- creating transport to send mail
- sending mail to activate account
- checking user email is registered or not
- creating expiry token
- adding token to the database
- composing mail
- creating transport to send mail
- sending mail to reset password
- finding user
- verifying token
- encrypting user password
- updating password
- finding user and updating account status
- activating account and updating it in the database
- checking if url already exists
- creating object of data details
- adding url to database
- finding url
- creating randomstring
- passing randomString as params
- adding short url
- finding url to send response
- finding long url using string passed in params
- increasing shortened url count
- sending response with the longurl
- finding all shortened urls
- sending all the shortened urls as response
- getting count of number of urls created
- sending the response with the urls created count