- A mongoDB server running on localhost port 27017.
- Node. I used version 13.2.0.
Run the following commands:
cd frontend
npm install
cd ../backend
npm install
cd ..
Run the following commands in two separate terminal windows:
cd backend
npm run start
cd frontend
npm run start
Accept port other than 3000 for frontend. Then point your browser towards the URL in terminal 2.
Developed and tested in Firefox only.
- 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.