This web application allows users to upload blood test results, either as PDF files or by manually entering values, and visualize trends over time through interactive graphs.
Below is an example of the comparison page displaying graphs for some blood test results:
Ensure you have the following installed on your system:
- Ruby 3.4.2
- Bundler (dependency manager for Ruby)
- Docker Compose (for managing the database)
You can install the specific version of Ruby using tools like RVM or rbenv.
-
Install the gem dependencies:
bundle install
-
Start the PostgreSQL database using Docker Compose:
docker compose up -d
-
Initialize the database:
rails db:create
-
Apply the database migrations:
rails db:migrate
-
Start the Rails server:
rails s
Optionally, you can start both the Rails server and the Dart Sass watcher using the provided script:
bin/dev
This project uses RSpec for testing. To run the test suite, use the following command:
bundle exec rspecTo enable PDF uploads, ensure the Blood-Tests-Extractor service is running. Follow the setup instructions in its README.
Once the application is running, access it in your web browser by visiting: http://localhost:3000.
This project is licensed under the BY-NC-SA 4.0 License.
