Coder Social home page Coder Social logo

kry-app's Introduction

Kry - Code Assignment

Context

We want to collect information about a patient's symptoms and suggest an action for the patient to take (for example, booking a digital appointment with one of our doctors). To collect this information, we ask the patient a series of questions. Depending on the answer to each question, a new question will be shown until we reach a conclusion about what action to suggest to the patient. For this, you can find a JSON file structured with questions, answers and outcomes.

The assignment

Your assignment is to create a small React front-end application that runs the flow described above.

● The application should read questions, answers and outcomes from the JSON you can find above.

● The application should start with the first question in the list.

● The patient’s score starts at 0.

● Each question contains a list of possible answers (exactly 2 per question). Answers have “id”, “label” (text to put on button) and “score” (a number to be added to the current score for the patient).

Requirements

● As a user, I can navigate the questionnaire in a UI. Mimic this design, or make up an even nicer one.

● As a user, I can navigate back and forth in the questionnaire.

● As a user, after answering all the questions, I am presented with suggested actions to take.

● As a user that has completed the questionnaire, I can restart the questionnaire and take it again.

● As a user, I can visualise the progress of the questionnaire as I answer the questions.

Getting Started

Instructions to run a local copy for development and test pruposes.

To run the project in the development mode, follow the instructions below:

Download or clone the repository in your computer:

$ git clone https://github.com/dendenmuniz/kry-app.git

**In the repository folder:

  • install project dependencies with

yarn install

  • start the development server with

yarn start

To run the project in the production mode, use this command intstead:

yarn build

Dependencies & Tools Used

  • As a project generated with create-react-app, it includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency.
  • Ajv Json shema validatior

DevDependencies

ESLint Prettier

Contact

Denise Muniz - [email protected]

kry-app's People

Contributors

dendenmuniz avatar

Watchers

James Cloos avatar Ricardo Pereira Ramalho avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.