Skip to content

Citrupoker/RAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Apprentice Bot

Screenshot

install node and npm using NVM

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

or

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

then

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install v6.11.0

install SSL using LetsEncrypt

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install certbot

then

certbot certonly --standalone -d yoururl.com

then

certbot renew --dry-run

install PM2

npm install -g pm2

clone the repository

git clone https://github.com/Remote-Apprentice/RAB.git rab

create a .env file in the root directory

clientId=YOUR_CLIENT_ID
clientSecret=YOUR_CLIENT_SECRET
token=YOUR_BOT_TOKEN
siteUrl=YOUR_SITE_URL

start the server

cd rab
pm2 start app.js

stop the server

pm2 stop app

Angular 4 app

cd client
ng build --prod

see https://github.com/angular/angular-cli for more commands