Skip to content

url shortener microservice built with nodejs and express <3

License

Notifications You must be signed in to change notification settings

RaviPabari/shortify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url Shortener Microservice built with NodeJs

Live working http://shme.herokuapp.com/
         ███████╗██╗  ██╗ ██████╗ ██████╗ ████████╗██╗███████╗██╗   ██╗
         ██╔════╝██║  ██║██╔═══██╗██╔══██╗╚══██╔══╝██║██╔════╝╚██╗ ██╔╝
         ███████╗███████║██║   ██║██████╔╝   ██║   ██║█████╗   ╚████╔╝ 
         ╚════██║██╔══██║██║   ██║██╔══██╗   ██║   ██║██╔══╝    ╚██╔╝  
         ███████║██║  ██║╚██████╔╝██║  ██║   ██║   ██║██║        ██║   
         ╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝   ╚═╝╚═╝        ╚═╝     

Setting Up Locally

$ git clone https://github.com/RaviPabari/shortify
$ cd shortify/

Installing Dependencies

npm install

Now there are 2 environment variables to set before running

NODE_ENV

This will enable morgan if set to 'test'

export NODE_ENV=test

To connect to your own mongodb cloud paste your own key here

mongo_uri

export mongo_uri="mongodb+srv://username:<password>@cluster0.ynxhw.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"

Run the server

npm test

About

url shortener microservice built with nodejs and express <3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages