A React project built with React, PHP & MySQL .
View Demo
·
Report Bug
·
Request Feature
- About the Project
- Getting Started
- Features and Functionality
- Concept Process
- Development Process
- Final Outcome
- Conclusion
- License
- Contact
- Acknowledgements
Welcome to Salubrious! This is a receptionists management portal that I built using React, PHP & MySQL. It is a CRUD-system that can create, read, update & delete.
The following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Here are a couple of ways to clone this repo:
-
GitHub Desktop
Enterhttps://github.com/wiaandev/salubrious.git
into the URL field and press theClone
button. -
Clone Repository
Run the following in the command-line to clone the project:git clone https://github.com/wiaandev/salubrious.git
Open `Software` and select `File | Open...` from the menu. Select cloned directory and press `Open` button
-
Install Dependencies
Run the following in the command-line to install all the required dependencies:npm install
The receptionist can add an appointment by assigning a patient to a doctor. They can add the name, date and time and it will display on the page when the page auto-refreshes.
The receptionist can scroll through the calendar to see which date falls on which day, the receptionist can go forward or backward in time using the arrows underneath the month's name.
The receptionist can add a new doctor or patient's information into the modal and it will push to the database and display on the page after it refreshes.
The head receptionist is the only one authorized to add, delete or update appointments, patients & doctors
It was very evident that blue is something that is very evident when designing dashboards or management portals for medical firms. So it is the route that I decided to go with Salubrious, I tried keeping it clean with different hue's of blue and some accents of a lime green.
The Development Process
is the technical implementations and functionality done in the frontend and backend of the application.
-
I used
npx create-react app
to create this React project. I implemented component-based development instead of classes. By doing this, I will be able to easily inject and eject components and sub-components into my project, making it refactorable and reusable instead of writing up classes I have to do everytime making it tedious and redundant -
I implemented the
date-fns
dependency to manipulate and display the time & date the I wanted to and to create my calendar -
I incorporated
tailwindcss
to create and style my calendar component the way I wanted it to look -
axios
was implemented so that I can make HTTP requests to the database server so that I can retrieve and push data to it -
I used
PHPMyAdmin
to alter data on the database and used PHP to talk to the backend MySQL database
- A highlight of this project was defintely interacting with the database and manipulating data on the database and seeing it being displaye on the application.
- I struggled to get all my updates and deletes to be implemented.
- I struggled to get all my profile pictures to be updated and rendered on the DOM from the Database.
- debugging the CORS error's for sending data to the Database, especially my Register page's CORS error
- I struggled a lot with debugging the PHP error's
- Front-end was also a bit tricky because I kept following the trend of putting everything in blocks
The aspects I learned outside of this class, is that I implemented tailwindcss to create my calendar, I also incorporated the Date-fns dependency to render my calendar dates.
- I want to complete all my update and delete's of the patients and doctor's
- I want to fix my styling for my application
- I want to display the appointments by week
- I want to complete the profile pictures to be rendered and updated
To see a run through of the application, click below:
See the open issues for a list of proposed features (and known issues).
- Wiaan Duvenhage - Github
Distributed under the MIT License. See LICENSE
for more information.\
- Wiaan Duvenhage - wiaanduvenhage.dev@gmail.com - @wiaan.dev
- Project Link - https://github.com/wiaandev/salubrious