Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/abskrj/shotly-url-shortner-backend
- Owner: abskrj
- License: cc0-1.0
- Created: 2020-10-12T15:32:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-14T08:12:30.000Z (over 3 years ago)
- Last Synced: 2024-05-01T12:27:00.103Z (10 months ago)
- Topics: express-js, hacktoberfest, hacktoberfest-accepted, mongoose, node-js, url-shortener
- Language: JavaScript
- Homepage: https://sotly.co
- Size: 55.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-Backendcd 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}