ESR API is an open source project to improve the ability of NHS Trusts to interface with their ESR Data.
It's a collaboration between SARD JV and Oxleas NHS Foundation Trust, funded by NHS Improvements. It's currently under active development and is not yet ready for production use.
Click here to check out the documentation for this project.
- Ruby 3.3.6
- Rails 6.1.7.x
- MySQL 8.0
- Redis 6+
- Node 18+ (Webpacker 5 / Webpack 4 —
NODE_OPTIONS=--openssl-legacy-provideris wired intobin/webpackfor Node 17+) - Sidekiq 6.5
# Install Ruby + bundler
rbenv install 3.3.6 && rbenv local 3.3.6
gem install bundler
# Install gems and JS deps
bundle install
yarn install
# Boot a local MySQL (bound to localhost only)
docker run -d --name esr-api-mysql \
-p 127.0.0.1:13306:3306 \
-e MYSQL_ROOT_PASSWORD=esr_api_dev \
mysql:8.0
# Copy .env.example to .env and fill it in, then:
bundle exec rails db:create db:schema:load
bundle exec rspeccp .env.example .env # fill in passwords / secrets
cp docker-compose.override.yml.sample docker-compose.override.yml
docker-compose up