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