Skip to content

robertoz-01/blood-tests-app

Repository files navigation

Blood-Tests-App

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:

Screenshot of the page showing a blood test comparison

Development

Prerequisites

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.

Setup

  1. Install the gem dependencies:

    bundle install
  2. Start the PostgreSQL database using Docker Compose:

    docker compose up -d
  3. Initialize the database:

    rails db:create
  4. Apply the database migrations:

    rails db:migrate
  5. 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

Test

This project uses RSpec for testing. To run the test suite, use the following command:

bundle exec rspec

External Service

To enable PDF uploads, ensure the Blood-Tests-Extractor service is running. Follow the setup instructions in its README.

Usage

Once the application is running, access it in your web browser by visiting: http://localhost:3000.

License

This project is licensed under the BY-NC-SA 4.0 License.

About

Web application to manage blood tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors