Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harish-govindasamy/urlshortener-backend
Create a Shorter URL for Given URL - BackEnd
https://github.com/harish-govindasamy/urlshortener-backend
database dotenv express jsonwebtoken mongoose nodejs nodemailer validation
Last synced: 10 days ago
JSON representation
Create a Shorter URL for Given URL - BackEnd
- Host: GitHub
- URL: https://github.com/harish-govindasamy/urlshortener-backend
- Owner: harish-govindasamy
- Created: 2024-12-07T02:58:25.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2024-12-07T03:12:25.000Z (19 days ago)
- Last Synced: 2024-12-07T04:18:47.090Z (19 days ago)
- Topics: database, dotenv, express, jsonwebtoken, mongoose, nodejs, nodemailer, validation
- Language: JavaScript
- Homepage: https://urlshortener-mhsq.onrender.com/
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL Shortener Backend
## Overview
- SignUp check the existing database and update the new user
- By default inactive account is created and a activation link will be sent to the user email through node mailer
- Login check the user data and allow the login
- Endpoint to resend the activation email
- Forgot Password creates a temporary token and send a mail to the user to update the password
- Gets a Full URL from user and create a Hsort URL
- when the Short URL is clicked it will Redirect the user to Full URL
- Update the Short URL Count everytime the short url is clicked**Base URL**
URL - https://urlshortener-mhsq.onrender.com/
### POST
**signup**
`https://urlshortener-mhsq.onrender.com/signup/newuser`
Get the user data and store it in the dataBase
Automatically send a email to the user for Authentication**_Request Format_**
{
"email": "[email protected]",
"password": "example"
}### POST
**login**
`https://urlshortener-mhsq.onrender.com/login/user`
Get the user data and check the user details in the database**_Request Format_**
{
"email": "[email protected]",
"password": "example"
}### POST
**forgot passoword**
`https://urlshortener-mhsq.onrender.com/forgot`
Get the user email and check the user details in the database and send a Password Reset link to the User email**_Request Format_**
{
"email": "[email protected]"
}### GET
**verify reset page**
`https://urlshortener-mhsq.onrender.com/reset/:id/:token`
When the User click the password reset email it will check the data and allow the user to update the new password### PATCH
**update new password**
`https://urlshortener-mhsq.onrender.com/forgot`**_Request Format_**
{
"newPassword": "123",
"confirmPassword": "123"
}## Front End Live Site
- [Live Site](https://urlshortener-frontend-1999.netlify.app/)
## Live Site
- [Live Site](https://urlshortener-mhsq.onrender.com/)