Skip to content
CloudkiboPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

WebHook

Operations Guide

Setup Nodejs and NPM

You should have Nodejs and NPM installed on your system.

Install Forever

To install forever run the following command:

npm install forever -g

Install Git

sudo apt-get update
sudo apt-get install git

Clone

Now, clone the project:

git clone https://github.com/Cloudkibo/WebHook/

Redirect the ports to our application ports

Run following two commands

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443

Now on terminal, set the environment variables in /etc/environment.

nano /etc/environment

We need to set the following variables: (Just copy paste and then change the values)

NODE_ENV=production
FACEBOOK_ID=<YOUR FB ID>
FACEBOOK_SECRET=<YOUR FB SECRET>
DOMAIN=<YOUR DOMAIN>

Now, run the following command to install dependencies:

npm install

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages