Skip to content

Curebase/tech-assessment-fe

Repository files navigation

Sr. Engineer tech assessment

As a Sr. Engineer we want to see your skills with architecture, security, performance and clean code.

The following tech stack are required:

  • TypeScript
  • React

These ones will be considered a differential, but are not required:


Goal

Develop a responsive React application based on this Figma file, consuming a GraphQL endpoint.

Nice to have

  • Application is packaged in Docker.

Screens

Participants

You should fetch all the participants from GraphQL and list them on this screen.

Trials

You should fetch all the trials from GraphQL and list them on this screen.

Enroll a participant

This is a form to enroll a new participant to a clinical trial, all fields are required.

After you fill all the fields and clicked to persist the participant to the participants collection (doing a mutation to the GraphQL), you should redirect the user to a success screen presenting a message that shows if the participant is eligible or not for the clinical trial.

An eligible participant should:

  • HAS DIABETES
  • DIDN'T HAVE COVID
  • BMI > 18
  • BMI < 30

BMI Formula: weight (lb) / [height (in)]2 x 703

Divide weight in pounds (lb) by height in inches (in) squared and multiplying by a conversion factor of 703


GraphQL API

We have a basic API setup on /api.

You need to setup a fresh API that implements the necessary GraphQL resolvers to retrieve / create / update the necessary data.

Feel free to use the tools of our choice to build that GraphQL API.

FAQ:

  • You can use any framework of your choice like Nest.js, vanilla express + Apollo Server etc.
  • You can use any ORM like Prisma, Sequelize etc.
  • You can use any DBMS like Postgres, SQLite, MongoDB etc.

Notes

  • You need to be logged in with your Figma account to have access to all specs of the file and be able to extract colors, fonts, sizes and etc...
  • Ensure that you have Node >=14.0.0 to run this project
  • If you have any questions, don't hesitate to touch base with us.

Running instructions

yarn && yarn start


How to delivery your tech assessment

Clone this repo and push it to a private repo on your account, and then give access to the following users:

When you are done with the tech assessment, please send an email to:

Cheers! 🍻

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors