Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Setting up a Test Environment on OSX 10.10
The following instructions have not been tested since the last update. If you have any trouble with these instructions, please hop in the gitter.im room, and ask for help!!
- Get access to the system's CLI
- Make sure you have enough memory (8GB+ is recommended)
top -l 1 -s 0 | grep PhysMem
Setting up Dependencies
This section helps you set up all the software and libraries that intrigue-core depends on.
Install Redis (and start it)
brew install redis brew services start redis
- Install postgres & create a db
brew install postgresql brew services start postgresql createdb intrigue_dev
- Install phantomjs & imagemagick
brew install phantomjs brew install imagemagick
Install Java Follow instructions here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
brew install nmap
- Install masscan
git clone https://github.com/robertdavidgraham/masscan cd masscan make sudo make install sudo cp bin/masscan /usr/local/bin # required on elcapitan & above
- Make sure your user can run nmap, masscan as root. Add your user to wheel
sudo dseditgroup -o edit -a `whoami` -t user wheel
- Add these lines to /etc/sudoers
Cmnd_Alias NMAP = /usr/local/bin/nmap Cmnd_Alias MASSCAN = /usr/local/bin/masscan %admin ALL=(root) NOPASSWD: NMAP, MASSCAN
- Install Rbenv & Ruby
brew install rbenv rbenv-gemset rbenv install 2.5.1 rbenv global 2.5.1
Getting the code
- Pull down the code from Github
git clone https://github.com/intrigueio/intrigue-core.git core
- Install gems via bundler
cd core bundle install
Start it up
- Start the application
sudo bundle exec foreman start
- Ensure it's running (should show it running on 127.0.0.1:7777)
netstat -n -p tcp | grep 7777
OPTIONAL: Configure it to listen on 0.0.0.0:7777 ...
NOTE.. This can affect security of your system. There's currently no authentication, so anyone can run tasks. This is not a good idea unless you know what you're doing.
You've been warned. Open up an editor with
vim config/puma.rb and edit the line bind 'tcp://127.0.0.1:7777' to bind 'tcp://0.0.0.0:7777'