olacabs / jackhammer

Jackhammer - One Security vulnerability assessment/management tool to solve all the security team problems.
https://jch.olacabs.com/userguide
Other
718 stars 162 forks source link

Local Setup for the Jackhammer #36

Open hackerabhinavverma opened 7 years ago

hackerabhinavverma commented 7 years ago

Hi Can you provide the steps for local setup. I don't want to use docker to run the jackhammer framework.

Do you have any documentation to do the local setup without docker?

kmadhusudhan commented 7 years ago

steps for local setup

Installing Ruby & rails: 1) Install RVM from https://rvm.io/rvm/install 2) rvm install -v 2.3.0 3) gem install bundler 4) bundle install

Do DB installation and configure db details in config/database.yml

Run rails s for starting application . application can be access from localhost:3000

sampathmende commented 6 years ago

Dear Team, Can you pls post db details in config/database.yml I am trying to install locally. installed rvm and ruby then finally installed sql client. sudo apt-get install libmysqlclient-dev sudo gem install mysql2 -v '0.4.10' but getting error since i did not configure database.yml pls give the details

kmadhusudhan commented 6 years ago

please configure configure Database username,password and database name

sampathmende commented 6 years ago

I did db setup for production and default production: adapter: mysql2 encoding: utf8 reconnect: false database: jackhammer_production pool: 5 username: root password: root socket: /tmp/mysql.sock

when i use the commands to create db bundle exec bundle install && bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed

It went fine with but one issue jackhammer_development doesnot exist. THen i stared the server rails s then accessed the applicaiton localhost:3000 It is showing for pending but not scanning? whats the problem ?? how to debug it?? capture

sampathmende commented 6 years ago

By default it is getting started on jackhammer_development database. i ran query on my sql console shows that jackhammer_production db does not exist. is that the problem??? pls reply

kmadhusudhan commented 6 years ago

Run this bundle exec rails s -e production

sampathmende commented 6 years ago

@KMadhuSudhan First i ran the query

  1. bundle exec bundle install && bundle exec rake db:drop && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake db:seed got deprecation warning:DEPRECATION WARNING: The factory_girl gem is deprecated. Please upgrade to factory_bot. See https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md for further instructions. (called from <top (required)> at /home/sampath/jackhammer/web/app/config/application.rb:6)
  1. bundle exec rails s -e production server is up and running But when i access the application on localhost:3000 got error capture

But if i ran it without production its running but not scanning the application