Skip to content

Tr1ck-5t3r/purrchase-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐾 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors