Skip to content

javascript link shortener, just for fun - featuring: es2016 async goodness

License

Notifications You must be signed in to change notification settings

johnrjj/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortener

pure js link shortener, just for fun - featuring: es2016 goodness

install

npm install

##db config Setup for mongodb

Create two collections: counter, links

insert into counter collection initial counter values:

{
  obj: 'counter',
  seq: 0
}

run

node index

notes

I know redis would be a better db, but I chose mongo just to see how a document storage would work here. I wrote the db layer so it can be easily swappable.

About

javascript link shortener, just for fun - featuring: es2016 async goodness

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published