Postman API Documentation Live Link
-
Login & Registration
- Login: Username/email, password
- Registration: Username, email, password (confirmation)
-
Pet Details Page (Private)
- Multiple photos, detailed description, age, breed, gender, health status, location
- Adoption request button for logged-in users
-
Pet Adoption Request Page
- Form: Contact info, additional info, terms agreement
- Submit button
-
My Profile
- User info: Edit profile, change password
- My Adopted Pets: List with name, photo, adoption date, link to details
-
Admin Dashboard
- User Management: View/manage accounts, roles
- Pet Management: Add/edit/remove pets
- Programming Language: TypeScript
- Web Framework: Express.js
- ORM: Prisma with PostgreSQL
- Authentication: JWT (JSON Web Tokens)
- Validation: Zod
-
Clone the repository:
git clone https://github.com/Sabbir2809/pet-adoption-server cd pet-adoption-server
-
Install dependencies:
yarn add
-
Setup environment variables in
.env
NODE_ENV = development; PORT = 5000; DATABASE_URL = your_postgres_url; BCRYPT_SALT_ROUNDS = your_bcrypt_salt_rounds; JWT_SECRET = your_jwt_secret; JWT_EXPIRES_IN = your_jwt_expires_in; REFRESH_JWT_SECRET = your_refresh_jwt_secret; REFRESH_JWT_EXPIRES_IN = your_refresh_jwt_expires_in; CLOUDINARY_CLOUD_NAME = your_cloudinary_cloud_name; CLOUDINARY_API_KEY = your_cloudinary_api_key; CLOUDINARY_API_SECRET = your_cloudinary_api_secret;
-
Run the development server:
yarn dev
-
Open
http://localhost:5000
in your browser.