This is a sample project to demonstrate how to automatically fill in a company form thanks to Companydata.co.
This is a Rails 5 application. You can test the live demo.
Feel free to fork, reuse, copy, redistribute... Anything useful for you.
This project uses Ruby 2.4.0.
Get a recent version of Bundler:
gem install bundler
gem update bundler
and run:
bundle install --without db
More about installing a development environment: http://guides.rubyonrails.org/development_dependencies_install.html
git clone https://github.com/sebastiencarceles/company_form_autocomplete.git
cd company_form_autocomplete
Create your account for free on Companydata.co. You will be given an API Key.
Create the file config/application.yml
and copy-paste the email you used to register and your API Key into this file:
COMPANYDATA_ACCOUNT: my.email@domain.com
COMPANYDATA_API_KEY: MyAwesomeKey
rails server
Open your browser at localhost:3000 and test with a french registration number or VAT number. For example: FR19809743263
.