This is the Conclave Central Identity Index (CII) API service.
- OrganisationSchemeIdentifier: An organisation is an entity which may include multiple identifiers. A identifier is data related for an organisation for a scheme e.g. Companies House.
- Scheme: A scheme is an external register or reference agency.
- SchemeRegister: Scheme Registers represent an Operator/Legal entity which used to provide unique identifiers for organisations sourced existing public available register lists exposed by existing API’s, e.g. Companies House.
This is a Ruby on Rails application to provide a central register to identify organisations; suppliers using external identifiers It's only presented as an internal API and doesn't face public users.
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install rbenv
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.7.2
rbenv global 2.7.2
gem install rails -v 6.0.3
Go to https://www.postgresql.org/ and download the installer
bundle install
If you get the following error:
pg_connection.c:2411:4: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration] gettimeofday(&currtime, NULL);
Then run the pg installation as below, before running bundle install again:
gem install pg -v '0.18.4' -- --with-cflags="-Wno-error=implicit-function-declaration"
Before you run the db commands, you need to make sure you have your .env.local file in your projects folder.
Then run:
rake db:create && rake db:migrate && rake db:seed
From your console run the rails server:
rails s
To run the specs, from your console do:
rspec spec