🐾 Adopet API
A RESTful API built with Node.js and TypeScript for managing animal shelters, adopters, and pets. This project demonstrates backend development practices such as API design, relational data modeling, middleware usage, and centralized error handling.
The application uses Express as the web framework and TypeORM for database management, with SQLite as the development database.
🚀 Features
🏠 Shelter management (CRUD operations)
🐶 Pet management (CRUD operations)
👤 Adopter management (CRUD operations)
🔗 Entity relationships
Pet → Shelter
Pet → Adopter
✅ Request validation using custom middleware
📦 Modular backend architecture
🛠️ Technologies Used
Node.js
TypeScript
Express
TypeORM
SQLite
Custom Middlewares
📂 Project Structure (simplified) src/ ├── controllers ├── entities ├── middlewares ├── routes ├── services └── app.ts
This structure separates responsibilities and follows common backend architecture patterns used in Node.js applications.
⚙️ Running the Project Locally 1️⃣ Clone the repository git clone https://github.com/SEU_USUARIO/projeto-adopet-TypeScript.git cd projeto-adopet-TypeScript 2️⃣ Install dependencies npm install 3️⃣ Run the development server npm run dev
The API will be available at:
http://localhost:3000 📚 What This Project Demonstrates
This project demonstrates practical backend development concepts such as:
REST API design
Entity relationships with TypeORM
Middleware architecture
Error handling patterns
TypeScript usage in Node.js backends
💡 Educational project created to practice backend development with Node.js and TypeScript.