LIVE Preview: https://app.codedoc.tech
NOTE: This is Backend of the WebApp, Click on the below link to view frontend. Frontend: Click Here
- ExpressJS
- NodeJS
- Mongoose
- MongoDB
git clone https://github.com/abhishekraj272/Shotly-URL-Shortner-Backend
cd Shotly-URL-Shortner-Backend
# Create .env file and paste
MONGO_URI=<Your MongoDB URL Here>
npm install
npm start
- POST /api/v1/shorten
Content-Type: application/json
{
"urlReceived": originalURL,
"urlCode": alias
}
- GET /api/v1/count
- GET /{alias}