Project Overview:
A Full-Stack application with a RESTful backend and Next.js (React) responsive frontend. The service incorporates CRUD operations to search, adopt, save and return pets.

Home Screen
Database
Created a relational data model of a service. Implemented the model with Prisma ORM and PostgreSQL.
Application
Get Pets API
Retrieves pets that match given filters.
Receives query parameters to search the database.
Retrieves results that match the query. If no parameters are passed, it returns all the results.


Search by pet name
Get Pet By ID API
Returns corresponding pet from the database.
Stores pet information in the database.

Pet Details
Adopt/Foster API
Adds a pet to the user's pets.
Changes pet’s adoption status.
Return Pet API
Returns a pet to the agency.
Changes adoption status to "available".
Removes a pet from a user's adopted pets list.
Save Pet API
Save Pet API
Saves a pet for later.
Delete Saved Pet API
Removes a saved pet.
Get User's Adopted/Saved Pets

A list of user's adopted/saved pets
Admin Dashboard
Lists all the pets and provides functionality to ADD, UPDATE, and DELETE.
Lists all the users and provides functionality to see each user's adopted pets.
Allows to search for a user.

Admin Dashboard
Add Pet API
The add pet API is responsible for adding new pets.
Validated all the user input with the AJV library.

Add Pet Form
Edit Pet API
Same as ADD Pet API But with pet details already displayed in the form.
Authentification
Signup API
Validates user's input.
Checks that passwords match.
Ensures that the email does not exist in the database.
Hashes the user's password.

Login API
Checks that an email and a password match an existing user.
Returns JWT Token and logins a user.

Update User's Profile

0 likes · 43 views · Dec 21, 2023
A Full-Stack application with RESTful backend and Next.js (React) responsive frontend. The service incorporates CRUD operations to adopt, save and return pets.