Skip to content

HuddleHouse/severless-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Free URL Shortener using Firebase, Google Cloud Firestore, and Cloud Functions

Features of pug.gl

  • Generate short URL's on pug.gl
  • Build Routes and API
    • /:encoded_id - GET: Redirects to the Long URL
    • /:encoded_id/test - GET: Redirects to Long URL without saving click information in Firestore
    • /:encoded_id/stats - GET: Returns JSON of the stats for that particular Short URL
    • /api/shorten - POST: Returns Short URL
    • /api/stats - GET: Returns JSON of the stats for ALL short URL's

The stats that we will save for each click are:

{
	url_id: string,
	clicked_on: Date,
	long_url: string, //long URL that was shortened
	ip: string, // IP address of the click
	city: string, // City of the IP
	country: string,
	lat: number,
	lon: number,
	
	region: string,
	zip: number
}

Global Requirements

You don't necessarily need the versions I list. Technology changes quick and I want to guarantee if you have the versions listed installed it will work! I do the same in the package.json file later.

About

Free URL Shortener using Google Cloud Firestore, Cloud Functions and Firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors