BookSwap is a full-stack web application built using the MERN (MongoDB, Express, React, Node.js) stack. It allows users to list, search, and swap books with other users. The app is deployed on Vercel.
- User authentication and profile management
- List books for swapping
- Search and browse available books
- Request and manage book swaps
- Real-time notifications
- Responsive UI built with React
- Frontend: React, Vite, Tailwind CSS
- Backend: Node.js, Express.js, MongoDB
- Authentication: JWT (JSON Web Token)
- Hosting: Vercel (Frontend), MongoDB Atlas (Database)
- Node.js and npm installed
- MongoDB Atlas or a local MongoDB instance
cd backend
npm install
npm startcd frontend
npm install
npm run dev- The frontend is deployed on Vercel: BookSwap on Vercel.
- The backend is also deployed on Vercel.
POST /api/auth/login- User loginPOST /api/auth/register- User registrationGET /api/books- Fetch all available booksPOST /api/swaps/request- Request a book swap
Here are some screenshots of the project:
The landing page where users can browse and discover books available for swapping.
A section choose which of your books you will trade.
An interface allowing users to see sent and recieved book requests.
Feel free to fork the repository and open pull requests for new features or bug fixes.
This project is licensed under the MIT License.


