Home Sweet Woof is a fullstack MERN application that connects adopters to dog shelter organizations. Users can sign up as either an adopter or a shelter organization. Depending on the login credentials, the user has access to different types of functionality. Adopters can look through dog listings and make an appointment with dog shelters. Shelter organizations can add adoptable dogs to the list and update the dog's information. Both users can communicate with each other in real-time through a chat box.
Home Sweet Woof has an appointment booking feature that utilizes DatePicker from the React library. DatePicker is a reusable React component to display dates using a calendar dialog. The local state in the calendar class is set to conditionally render appointments for both shelters and adopters.
- MongoDB
- Express
- React/Redux
- Node.js
- Socket.IO
if (this.props.user._id === this.props.currentUser.id) {
editNumber = (
<button id="add-phone-number-btn" onClick={this.editNumber}>
+
</button>
);
editDescription = (
<button id="user-description-edit-btn" onClick={this.editDescription}>
✎ Edit
</button>
);
}
As one of the key features of the website is the conditional rendering of what is displayed based upon the user's priviledge. One of the common themes throughout the code is what is and what is not displayed based upon the type of user logged in.