Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abskrj/shotly-url-shortner-backend

A NodeJS & MongoDB based easy to use and deploy URL Shortner.
https://github.com/abskrj/shotly-url-shortner-backend

express-js hacktoberfest hacktoberfest-accepted mongoose node-js url-shortener

Last synced: 2 months ago
JSON representation

A NodeJS & MongoDB based easy to use and deploy URL Shortner.

Awesome Lists containing this project

README

        

# Sotly URL Shortner

LIVE Preview: https://app.codedoc.tech

NOTE: This is Backend of the WebApp, Click on the below link to view frontend.
Frontend: [Click Here](https://github.com/abhishekraj272/Shotly-URL-Shortner-Frontend)

## Tools Used
1. ExpressJS
2. NodeJS
3. Mongoose
4. MongoDB

## Running Locally
```bash
git clone https://github.com/abhishekraj272/Shotly-URL-Shortner-Backend

cd Shotly-URL-Shortner-Backend

# Create .env file and paste
MONGO_URI=

npm install

npm start
```

## APIs available
1. POST /api/v1/shorten
```bash
Content-Type: application/json

{
"urlReceived": originalURL,
"urlCode": alias
}
```
2. GET /api/v1/count
3. GET /{alias}