Skip to content

Instantly share code, notes, and snippets.

@ptgamr
Last active August 29, 2015 14:25
Show Gist options
  • Save ptgamr/5b5eab388b2f9b951250 to your computer and use it in GitHub Desktop.
Save ptgamr/5b5eab388b2f9b951250 to your computer and use it in GitHub Desktop.
Installation guide

Install

  • MongoDB
  • NodeJS

###BACKEND

  • cd
  • sudo npm install
  • nodemon

backend endpoint is protected with JWT token, when using POSTMAN to test API, you'll need to include a token in the header

####To get a token

Authorization: Bearer <your token>

###FRONTEND

  • cd

  • sudo npm install

  • sudo npm install -g gulp bower

  • gulp serve (too start local server)

  • gulp build (to build deployment package)

  • gulp serve:dist (to start local server but using the build package)

  • when developing with local backend, change API in main/src/app/index.config.js point to the local address

###SSH keys

  • give your ssh key to @anh
  • cat ~/<pub_file> | ssh root@host "sshcommand acl-add dokku dokku-noi"

###Geo Data format

#
City
Province
Province
Province
Province
#
City
Province
Province
Province
Province
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment