Skip to content

bradtraversy/url_shortener_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener Service

API to create short urls using Node, Express and MongoDB

Quick Start

# Install dependencies
npm install

# Edit the default.json file with your mongoURI and baseUrl
# Use production.json in production env

# Run
npm start

Endpoint to create short url

POST api/url/shorten

{ "longUrl": "xxxx" }