Web application that is able to retrieve a provider’s details based on their National Provider Identifier (NPI).
There is a live version in this link. It is mobile-friendly, you can try it on your phone!
-
Setup your project gems/libraries environment installing RVM.
$ rvm install 3.0.2 $ rvm use 3.0.2@cmt-npi --create
-
Install libraries.
$ echo "gem: --no-document" > ~/.gemrc $ gem install bundler # Download MDM repo. $ bundle install $ rails db:create db:migrate
-
Install Postgres.
# https://medium.com/@manishyadavv/how-to-deploy-ruby-on-rails-apps-on-aws-ec2-7ce55bb955fa # $ sudo apt-get install postgresql postgresql-contrib # https://gleecus.com/blog/a-quick-guide-to-deploy-rails-5-2-application-on-aws-ec2/ $ sudo apt-get install postgresql postgresql-contrib libpq-dev $ sudo -i -u postgres $ psql
-
If getting errors on install pg gem, running:
$ gem install pg -v '1.2.3' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
Source: https://stackoverflow.com/questions/19625487/impossible-to-install-pg-gem-on-my-mac-with-mavericks.
-
-
Nokogiri: for issues see more in this link.
$ brew update $ xcode-select --install $ brew install libiconv $ brew link libiconv $ gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14
OR
$ gem install nokogiri -- \ --use-system-libraries \ --with-xml2-config=/usr/bin/xml2-config \ --with-xslt-config=/usr/bin/xslt-config
-
Credentials/Secrets
You can use this example of
./config/credentials.yml.enc
runningrails credentials:show
if you have the secret code ;-P Be sure to get thesecret_key_base
running$ rails secret
:See more details in rails/rails#30067 and https://medium.com/cedarcode/rails-5-2-credentials-9b3324851336.
Automated tests are based in RSpec tool.
The desired scenarios are at ./spec
folder.