Coder Social home page Coder Social logo

carepay-frontend-take-home-assessment's Introduction

CarePay Front-End Assignment

Task description

Create a new simple Angular 2+ application. This application should include one page with a search input field and a table with treatments of patients. The search input can be used to filter treatments by treatment code.

To reduce load on the API, the front-end should wait for the user to stop typing before making an API request.

Treatments must be retrieved by using fake REST API (https://github.com/typicode/json-server). You can find db.json file in the repository.

Search field validation:

  • Treatment code must include at least three identical letters, regardless of order. For example, treatment codes "aaa", "aa2a" and "zz222z" are valid, while "aabbcc" is not.

Treat the project as if it would go in production when you are done. So please make sure to unit test the application properly, but also think about the application structure, maintainability, readability, and code quality.

If there are any points that are not clear from this task, you can make assumptions. Assumption that are vital to the understanding of the solution can be written down in an .md file.

Installation

Use the package manager [npm] to install modules.

npm install

Usage

# Run Angular & JSON server together
npm run start:dev

# Run Unit Tests
npm run test

# Run Documentation Of Project
npm run start:documentation

# All Scripts:
{
    "start": "ng serve",
    "start:dev": "concurrently --kill-others \"npm run start:server\" \"npm run start:proxy\"",
    "start:documentation": "npm run build:compodoc && npm run serve:compodoc",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test --code-coverage  --source-map",
    "start:proxy": "ng serve --proxy-config proxy.conf.json",
    "start:server": "json-server --watch db.json",
    "serve:compodoc": "http-server documentation",
    "build:compodoc": "npx compodoc -p tsconfig.doc.json"
}

Required Tasks:

  • ✅ This application should include one page with a search input field and a table with treatments of patients
  • ✅ The search input can be used to filter treatments by treatment code
  • ✅ To reduce load on the API, the front-end should wait for the user to stop typing before making an API request.
  • ✅ Treatments must be retrieved by using fake REST API (https://github.com/typicode/json-server). You can find db.json file in the repository.
  • ✅ Search field validation:
  • ✅ Documentation
  • ✅ Unit Tests

Extra Features:

  • ⭐ Compodoc Documentation 100% Coverage
  • ⭐ Unit Tests 100% Coverage
  • ⭐ Pagination For Table
  • ⭐ 404 Not Found Page

Application Structure

alt text

Documentaion Coverage

alt text

Unit Tests Coverage

alt text

carepay-frontend-take-home-assessment's People

Contributors

ossamarafique avatar

Watchers

 avatar  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.