Skip to content

ShubhamKumarSahu-svg/link-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Shortener

Shorten URLs using Bitly with a simple React frontend and Node.js backend.

Quick Start

  1. Install dependencies:
    npm install
  2. Add your Bitly token to backend/.env:
    BITLY_TOKEN=your_bitly_token_here
    PORT=5000
    
  3. Start both servers:
    npm start
  4. Frontend: http://localhost:5173 Backend: http://localhost:5000

API

  • POST /api/shorten
    • Request: { "long_url": "https://example.com" }
    • Response: Bitly short link or error

Notes

  • Keep your Bitly token secret
  • Change Bitly domain in backend if needed

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published