Code Monkey home page Code Monkey logo

javachallenge's Introduction

Java App Challenge

Project Setup

create a emrdb database and load the sql file dump.sql (not necessary)

mysql -u [user] -p emrdb < dump.sql

Build Maven

./mvnw 

Run Test

./mvnw test 

Run docker-compose

Run at once

// to build the .jar
bash ./setup.sh

// to run app
docker-compose up -d
// emr-api will run on tcp :8070
// adminer will run on tcp :8000

Post man collection

https://www.getpostman.com/collections/36415dbeab3f154f2d9a


The challenge

~ Task Info
1 An endpoint to add a new staff member to the service, a uuid is autogenerated for every staff member which will be required for subsequent API requests. Staff profile comprise: id, name, uuid, registration_date
2 An endpoint to update staff member profile (Requires validating staff uuid before access)
3 An endpoint to fetch all patient profiles (up to 2 years old)
Patient profile comprise: id, name, age, last_visit_date
(Requires validating staff uuid before access)
4 An endpoint to download a specific patient’s profile into a csv file (Requires validating staff uuid before access)
5 An endpoint to delete multiple patient profiles between a date range (Requires validating staff uuid before access)

Tools & Additional Requirement

~ Tasks Tools
1 Database (use H2 or MySQL)
2 API service should populated with some initial patient profile data (use SQL script or Liquibase)
(Populate over hundred mock/random patient profile data)
3 Two test cases provided for any endpoint of your choice

javachallenge's People

Contributors

ukwuani avatar

Watchers

 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.