RXGuide
RXGuide is an app made to help the user organize his medication. The user will be able to add, edit or remove medication.
"records": [
{
"id": "recwYDDpqd5VVF5N0",
"fields": {
"class": "Anti-Depressant",
"name": "Amitryptiline",
"description": "Anti-Depressant + Nerve pain medication",
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/6/68/Amitriptyline2DACS.svg/1200px-Amitriptyline2DACS.svg.png"
},
"createdTime": "2020-10-09T13:21:03.000Z"
},
- User should be able to add, remove, and edit RX (have full crud).
- Use ReactDOM for other page/s (About, etc).
- User could choose a drug class before choosing drug name from list.
- CSS animations and other candy
Day | Deliverable | Status |
---|---|---|
October 8 | Prompt / Wireframes / Priority Matrix / Timeframes | Complete |
October 9 | Project Approval | Complete |
October 11 | Core Application Structure | Complete |
October 12 | Pseudocode / actual code | Complete |
October 13 | Initial Clickable Model | Complete |
October 14 | MVP | Complete |
October 16 | Presentations | Complete |
Component | Priority | Estimated Time | Time Invested | Actual Time |
---|---|---|---|---|
Creating base | H | 10hrs | 4hrs | 4hrs |
Working with API | H | 8hrs | 10hrs | 10hrs |
MVP | H | 10hrs | 12 | 12hrs |
Post MVP | H | 10hrs | 10hrs | 10hrs |
Total | H | 36hrs |
- App will be comfortable to use.
- User will be able to add, edit, skip, or remove RX.
- User will only be able to select a limited # of RX from a list.
- There aren't many good looking RX websites or apps, creating a nice looking RX app can be very competitive.
- most RX apps are cold-hearted/elegant looking, I went for a different approach which might attract people.
- There are other apps with the simillar idea competing for the same people.
const sortedMeds = response.data.records.sort((recordA, recordB) => {
const date1 = new Date(recordA.createdTime).getTime();
const date2 = new Date(recordB.createdTime).getTime();
if (date1 < date2) {
// console.log('less than');
return -1;
}
else if (date1 > date2) {
// console.log('greater than');
return 1;
}
else {
// console.log('equal to ');
return 0;
}
})
setMeds(sortedMeds)
}
getApi()
}, [fetchMeds])
-
10/16/2020: Fixed a bug where medication name would dissapear when edited.
-
10/18/2020: Added a page where user can create his own custom medication, added a home button shortcut in footer, changed image for removing medication to a trash bin.
-
10/19/2020: Added a search medication functionality in the about page, got rid of border for buttons, changed styling for form, added more styling for text.
-
10/21/2020: Added a window that asks user if he's sure he wants to submit his custom medication.
-
Updated file structure
-
Added a loading icon if medication hasn't loaded yet in Homepage.
-
Added an error 404 page if user searches for an unexisting page.
-
Added an option for user to click on a specific medication from the list in about page and get more information.
-
Medications now have classes in addition to names, images, and descriptions.
-
10/27/2020: Added a hamburger menu, added a preview medication button on the create custom image form, changed styling of footer.
-
10/30/2020: added an "Move In Left" animation for logo on page load.
-
2/17/2021: refactor some files with more elegant code, create reducer and context for allMeds.
-
2/18/2021: added a sort by option in about page.
-
4/3/2021: created a separate Class Component based React branch for fun (main branch is hooks), also fixed sort bug.