Skip to content

nakov/ShortURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short URL JS App + RESTful API

The JS app "Short URL" holds a collection of URLs, accessible with a short code:

  • Add a new URL -> generates a short URL
  • Redirect by short URL to the original URL
  • Statistics: URL | Short URL | Date Created | Visits

App Details

The app is based on Node.js + Express.js + Pug.

  • It has no database and app data is not persistent!

Demo:

RESTful API

The following endpoints are supported:

  • GET /api - list all API endpoints
  • GET /api/urls - list all shout URLs
  • GET /api/urls/:shortCode - finds short URL by given shortCode
  • POST /api/urls - create a new URL shortcode (post a JSON objects in the request body, e.g. {"url":"https://cnn.com", "shortCode":"cnn"}
  • DELETE /api/urls/:shortCode - deletes short URL by given shortCode
  • POST /api/urls/visit/:shortCode - visits short URL by given shortCode (increases the visits count)

Windows Desktop Client App

https://github.com/nakov/ShortURL-DesktopClient

Screenshots

image

image

image

image

About

URL Shortener (JS App)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages