Git Product home page Git Product logo

pasientsky's Introduction

PasientSky assignment

Prerequisites

  • A mongoDB server running on localhost port 27017.
  • Node. I used version 13.2.0.

Setting up

Run the following commands:

cd frontend
npm install
cd ../backend
npm install
cd ..

Starting

Run the following commands in two separate terminal windows:

Terminal 1

cd backend
npm run start

Terminal 2

cd frontend
npm run start

Accept port other than 3000 for frontend. Then point your browser towards the URL in terminal 2.

Warnings

Developed and tested in Firefox only.

Things I would have fixed if I did not have three kids:

  • Design and UX. This does not look good.
  • If you search for a medication and press enter, the patient is saved. This should trigger a search instead.
  • Not save medications as a JSON string, but use a relational table instead.
  • Implement some kind of caching.
  • Save only the medication ID and not the name. I was not able to find a way to use the API to search by ID, so I had to save the name as well.
  • Put endpoints and database configuration into a config file instead of hardcoding it.

pasientsky's People

Contributors

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