Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.19 KB

File metadata and controls

28 lines (26 loc) · 1.19 KB

api

server side api that receives messages and serves data to the website

Development Enviorment set up For API

  • Install heroku For ubuntu
    wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
    heroku plugins:install git://github.com/ddollar/heroku-config.git
    heroku git:remote -a quantifieddev
    heroku config:pull --overwrite --interactive
    For windows
    https://toolbelt.heroku.com/windows
  • Install supervisor
    For ubuntu
    sudo npm install -g supervisor
    For windows
    npm install -g supervisor
  • Install foreman
    For ubuntu
    sudo npm install -g supervisor
    For Windows
    foreman comes with heroku, try to execute foreman command if it is working then you are done. If this is not working then do gem install foreman -v 0.61. ( For this you must have ruby installed and added to your path variable)
  • To run API
    -mongodb must be started
    -start foreman using command foreman start -f Procfile.dev
    -If this does not work then use command "supervisor main.js" and for this you need to add all variables from .env to your add sysytem varibles.