This is the backend server for the auction project. It complements the front-end client, providing essential functionality for managing auctions, user authentication, and real-time communication. The server is built using Node.js, Express, and integrates with various libraries and services to deliver a seamless online auction experience.
Frontend Client: Check out the Client Repository.
Link | ✅ |
---|---|
Client | ✅ |
Server | ❌ |
Before getting started, ensure you have Node.js installed on your system.
- Clone this repository to your local machine.
- Navigate to the project directory:
cd auction-backend`
- Install the required dependencies:
npm install`
To run the server locally, use the following command:
npm start
This will start the server, making it accessible for the client and handling API requests.
Here are some of the key dependencies used in this project:
- Express: A fast, unopinionated, and minimalist web framework for Node.js.
- MongoDB: A NoSQL database used for storing auction data.
- Socket.IO: A library for real-time, bidirectional communication between clients and the server.
- Cloudinary: A cloud-based service for managing and delivering images and media files.
- bcryptjs: A library for hashing and verifying passwords.
- jsonwebtoken: A library for creating and verifying JSON Web Tokens for authentication.
You can find the complete list of dependencies in the package.json
file.
npm start
: Starts the server using nodemon for automatic reloading during development.npm test
: Run tests (customize tests as needed).