This application serves the requirement of an online auction platform, designed to revamp the current offline number plate auction system and make it convenient for end users.
- Objective
- Technology Stack
- Features
- Project Setup
- Backend (Server)
- Online-auction-frontend (Frontend)
- Usage
- Authentication Flow
- API Documentation
- Contributing
- License
- Contact Information
This is a MERN Stack Application which follows a 3-tier architecture:
- User: React + Vite Application (Lightweight UI)
- Server: Node.js + Express (Services and APIs)
- Database: MongoDB
- User registration and authentication
- Real-time bidding system
- User profile management
- Admin dashboard for managing auctions
-
Clone the repository:
git clone <repository-url> cd backend
-
Install dependencies:
npm install
-
Start the server:
npm start
- Clone the repository:
git clone <repository-url> cd online-auction-frontend
- Install dependencies:
npm install
- Start the server:
npm run dev
After setting up the project, you can start the backend and frontend servers. Edit the .env files for your desired endpoints and access the application at the ports defined in the .env files for the frontend and backend.
- Register User
- Endpoint: POST /api/auth/register
- Description: Registration of a user
- Request Body:
{
"name": "",
"email": "",
"countryCode": "",
"mobile": "",
"address": "",
"password": ""
}
- Login User
- Endpoint: POST /api/auth/login
- Description: User login
- Request Body:
{
"email": "",
"password": ""
}
- Complete Registration
- Endpoint: POST /api/auth/register-complete
- Request Body:
{
"email": "utkrishtsolanki97gmail.com",
"otp": "789456"
}
- Request Password Reset
- Endpoint: POST /api/auth/request-password-reset
- Request Body:
{
"email": "utkrishtsolanki97@gmail.com"
}
- Reset Password
- Endpoint: POST /api/auth/reset-password
- Request Body:
{
"email": "utkrishtsolanki97@gmail.com",
"otp": "557559",
"newPassword": "Microsoft1#"
}
- Get User Profile
- Endpoint: GET /api/auth/profile
- Request Body:
{
"email": "utkrishtsolanki97@gmail.com"
}
- Fork the repository
- Create a new branch (git checkout -b feature-branch)
- Make your changes
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin feature-branch)
- Open a pull request
This project is licensed under the MIT License.
For any questions or feedback, please contact utkrishtsolanki97@gmail.com.