Data Migration API, that supports the migration of both organisation and user data into the PPG SSO system. Data provided to the request body as either a CSV file in the header, or a JSON body.
To get started with this project, you need to have the following installed on your machine:
- Ruby:
- Check if Ruby is installed:
ruby -v
- Install Ruby (if not already installed):
- Windows: Use RubyInstaller
- macOS: Use Homebrew
brew install ruby
- Linux: Use the package manager specific to your distribution, e.g.,
sudo apt-get install ruby-full
- Check if Ruby is installed:
- Rails:
- Check if Rails is installed:
rails -v
- Install Rails (if not already installed):
gem install rails
- Check if Rails is installed:
- PostgreSQL:
- Check if PostgreSQL is installed:
psql --version
- Install PostgreSQL (if not already installed):
- Windows: Use PostgreSQL Installer
- macOS: Use Homebrew
brew install postgresql
- Linux: Use the package manager specific to your distribution, e.g.,
sudo apt-get install postgresql postgresql-contrib
- Check if PostgreSQL is installed:
Follow these steps to set up and run the project locally:
- Clone the repository:
git clone https://github.com/Crown-Commercial-Service/ccs-conclave-data-migration cd ccs-conclave-data-migration
- Set your Ruby version to 3.3.3:
rbenv install 3.3.3 rbenv local 3.3.3
- Install the required gems:
bundle install
- Set up the database:
rails db:create rails db:migrate rails db:seed
- Start the Rails server:
rails s
- Send requests to
http://localhost:3000/...
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Date | Version | Changes |
---|---|---|
2024-07-15 | 0.9.0 | Initial release |
2024-07-20 | 0.9.1 | Fixed minor bugs and updated documentation |
Developers:
- Tom Berey.
- PPG Team.
For any help, support or queries, feel free to reach out.