Skip to content

A simple URL Shortening service written in nodejs using mongodb

Notifications You must be signed in to change notification settings

mohasinsutar/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title & Description

URL Shortening Sample Applications using node js

Prerequisites

You need to create mongo database with two collections.

  • counters to hold the sequence value
  • urls to hold the url and shortened value

Atleast create counters collections to initialize and set counter = 1
Run following commands using mongo shell

use url_shortener
db.counters.insert({ _id: 'url_count', seq: 1 })
show dbs

Quick Start and Installation

$ git clone https://github.com/mohasinsutar/url-shortener myapp
$ cd myapp
$ npm install
$ node app

Acknowledgments

About

A simple URL Shortening service written in nodejs using mongodb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published