Skip to content

lelea2/url-shorten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shorten

Shorten URL built with Hapi

Reference: https://codetuts.tech/build-a-url-shortener-node-hapi-js/

** How to install and manage mongo locally **

  1. Download mongo
$ cd ~/Download
$ tar xzf mongodb-osx-x86_64-2.2.3.tgz
$ sudo mv mongodb-osx-x86_64-2.2.3 /usr/local/mongodb
  1. Assign permission
$ sudo mkdir -p /data/db
$ whoami
kdao
$ sudo chown kdao /data/db
  1. Create ~/.bash_profile
$ cd ~
$ pwd
/Users/kdao
$ touch .bash_profile
$ vim .bash_profile

export MONGO_PATH=/usr/local/mongodb
export PATH=$PATH:$MONGO_PATH/bin

##restart terminal

$ mongo -version
MongoDB shell version: 2.2.3
  1. Restart mongo
$ mongod

About

Shorten URL built with Hapi, DustJs, MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published