Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fhightower
Last active September 28, 2017 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhightower/9ae9438ff7bad53ae6bae6a32385842e to your computer and use it in GitHub Desktop.
Save fhightower/9ae9438ff7bad53ae6bae6a32385842e to your computer and use it in GitHub Desktop.
ThreatConnect Sample Spaces App Setup
#!/usr/bin/env bash
# Instructions for getting the ThreatConnect sample app (https://github.com/ThreatConnect-Inc/TCS_-_SampleApp)
# running on a linux vagrant box (https://atlas.hashicorp.com/ubuntu/boxes/trusty64).
# basic updates
sudo apt-get update;
sudo apt-get -y install git;
cd /vagrant/;
# clone tc app
git clone https://github.com/ThreatConnect-Inc/TCX_-_ExampleContextApp.git
cd TCX_-_ExampleContextApp
# install nodejs
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -;
sudo apt-get install -y nodejs;
sudo npm install typings -g # do this otherwise `npm install will fail`
npm install # run this in the sample app's directory
# sudo npm install -g grunt;
sudo npm install -g grunt-cli;
grunt build:dist
# for some reason, I have to do this in order to get grunt to work properly
rm -rf ./node_modules;
npm install;
grunt build:dist;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment