A Node.js and Express-based backend server for a pet adoption platform. This server handles user authentication, pet listings, wishlist management, profile updates, and Razorpay-integrated pet adoption payments.
- 🐶 View Pets (All, by ID, or Latest Gallery)
- 👤 User Registration & Login (JWT Auth)
- 📝 Update Profile
- ❤️ Wishlist Functionality (Add/Remove)
- 🛒 Adopt Pets (Razorpay Integration)
- 🔒 Token-based Authentication Middleware
- 📦 MongoDB Models: User, Pet, Wishlist, Order
- Backend: Node.js, Express.js
- Database: MongoDB (via Mongoose)
- Authentication: JWT + Bcrypt
- Payments: Razorpay API
- Environment Management: dotenv
git clone https://github.com/Tr1ck-5t3r/purrchase-server
cd purrchase-server
npm installCreate a .env file and add:
MONGO_URI=
JWT_SECRET=
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
URL=<frontend_url>npm startServer will be running on http://localhost:5000