Skip to content

Latest commit

ย 

History

History
51 lines (37 loc) ยท 1.11 KB

File metadata and controls

51 lines (37 loc) ยท 1.11 KB

๐Ÿพ Purrchase Server API

Introduction

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.

๐Ÿš€ Features

  • ๐Ÿถ 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

๐Ÿ› ๏ธ Tech Stack

  • Backend: Node.js, Express.js
  • Database: MongoDB (via Mongoose)
  • Authentication: JWT + Bcrypt
  • Payments: Razorpay API
  • Environment Management: dotenv

๐Ÿ“ฆ Installation

git clone https://github.com/Tr1ck-5t3r/purrchase-server
cd purrchase-server
npm install

โš™๏ธ Environment Variables

Create a .env file and add:

MONGO_URI=
JWT_SECRET=
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
URL=<frontend_url>

โ–ถ๏ธ Running the Server

npm start

Server will be running on http://localhost:5000