department-of-veterans-affairs / veterans-employment-center

Veterans Employment Center
https://www.vets.gov/veterans-employment-center
5 stars 4 forks source link
vetsgov

Veterans Employment Center Build Status

Installation

Troubleshooting

Problem 1:

> 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.

Fix:

brew install qt

Problem 2:

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"

Fix:

Try running these commands:

rm -fr /usr/local/var/postgres
initdb /usr/local/var/postgres -E utf8

Git Worklow

Employment Center 101

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.

Environment variables

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:

Becoming an administrator locally for testing

$ export LINKEDIN_OAUTH_CLIENT_ID=put_your_client_id_here
$ export LINKEDIN_OAUTH_CLIENT_SECRET=put_your_secret_here
$ rails s
$ rails c
> User.where(:email => "my@email.address").update_all(va_admin:true)

VA Jobs API

The VEC relies on the VA Jobs API for featured job results.

https://github.com/department-of-veterans-affairs/jobs_api/tree/va-jobs

NLX API Points of Contact