An API for animal adoption! You can register as an organization and register pets for adoption, describing their main characteristics. Made with Node.js, Typescript, Fastify, tested with Vitest & Supertest.
TypeScript
Find A Friend API
An API for animal's organizations to register their accounts and post their little furry friends (or not) for adoption!
Functionalities
Create a new organization
Authenticate your account
Create new pets for adoption
Search pets by city & characteristics
Technologies Used
Node.js
Typescript
Fastify
Prisma
Zod
Docker (PostgreSQL)
Vitest
Supertest
Installing the Project
git clone *projet-url*
cd *projects-directory*
npm install
Load Docker Image (PostgreSQL)
*Reminder: Docker software must be installed previously.
docker compose up -d
Functional Requirements
Application Rules
It must be possible to register a pet.
It must be possible to list all pets available for adoption in a city.
It must be possible to filter pets by their characteristics.
It must be possible to view details of a pet for adoption.
It must be possible to register as an organization.
It must be possible to log in as an organization.
Business Rules
To list pets, it is mandatory to provide the city.
An ORG must have an address and a WhatsApp number.
A pet must be linked to an ORG.
All filters, besides the city, are optional.
For an ORG to access the application as an admin, it needs to be logged in.