Ensure you are running Ruby 2.3.0
If you are not, install rbenv, which is a tool that helps install/manage versions of Ruby (Note: make sure and follow the brew's post-install instructions):
$ brew install rbenv
And follow the initialization instructions for rbenv, provided by brew
$ rbenv init
Using rbenv install ruby:
$ rbenv install 2.3.0
Install the bundler gem
gem install bundler
Ensure you have Postgres installed and running
Clone the project repository:
$ git clone git@github.com/department-of-veterans-affairs/veterans-employment-center.git
Install gems and dependencies:
$ bundle install
See "Troubleshooting" below for issues
Create databases and load DB schemas:
$ rake db:create
$ rake db:schema:load
Load Data: seed your database tables--Note: This step may take 30-40 minutes:
$ rake db:seed
Start the application
$ rails s
> bundle install
[...]
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
Command 'qmake -spec macx-g++ ' not available
Gem files will remain installed in /var/folders/v4/qnj11mtx601glqpd1wymfd6h0000gn/T/bundler20150811-9857-iq0snu/capybara-webkit-1.3.1/gems/capybara-webkit-1.3.1 for inspection.
Results logged to /var/folders/v4/qnj11mtx601glqpd1wymfd6h0000gn/T/bundler20150811-9857-iq0snu/capybara-webkit-1.3.1/gems/capybara-webkit-1.3.1/./gem_make.out
An error occurred while installing capybara-webkit (1.3.1), and Bundler cannot
continue.
Make sure that `gem install capybara-webkit -v '1.3.1'` succeeds before
bundling.
brew install qt
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"
Try running these commands:
rm -fr /usr/local/var/postgres
initdb /usr/local/var/postgres -E utf8
$ git checkout -b YOUR_BRANCH_NAME
(creates a new feature branch and switches to it)
$ git add .
$ git commit -am 'YOUR MESSAGE'
(commit as many times as you need)
Then to submit a pull request for code review/approval:
$ git push origin YOUR_BRANCH_NAME
Once approved, merge and push to staging:
$ git checkout master
(switches to master branch)
$ git pull
(makes sure master is up to date)
$ git checkout YOUR_BRANCH_NAME
(switches to your feature branch)
$ git rebase -i master
Change the word 'pick' on all but one line to 'f'. Do not change the first line to 'f'! Save and close.
$ git checkout master
$ git merge YOUR_BRANCH_NAME
$ git push origin master
$ git push staging master
(pushes to staging)
$ git branch -d YOUR_BRANCH_NAME
(deletes your local branch)
$ git push origin :YOUR_BRANCH_NAME
(deletes branch on GitHub)
Common military codes to test the skills translator include 11B and 88M.
MOC codes are sourced from the DoD Occupational Database https://www.dmdc.osd.mil/owa/odb/
Default browser at VA is IE9 Compatibility Mode with IE7 Document Standards.
The Veteran Employment Center relies on a number of environment variables for setting various values used in the application. The project is set up to use the dotenv gem, which means, for local development, you can put these environment variables in a local file, .env, and they will be used by the application in development. For use in other environments, you'll have to make sure that the application context has access to the environment variables.
Contact @ayaleloehr if you need access to any of these variables
Here's a list of the environment variables used by the application:
rake secret
$ export LINKEDIN_OAUTH_CLIENT_ID=put_your_client_id_here
$ export LINKEDIN_OAUTH_CLIENT_SECRET=put_your_secret_here
$ rails s
cd
to the directory VEC is in and log into the rails console$ rails c
my@email.address
with the email address you used above to log in with LinkedIn:> User.where(:email => "my@email.address").update_all(va_admin:true)
The VEC relies on the VA Jobs API for featured job results.
https://github.com/department-of-veterans-affairs/jobs_api/tree/va-jobs