CritiQ is an decentralised web application for handling customer reviews and feedback for products and services. It incentivises the reviewer and prevents them from posting gibberish reviews to maintain authenticity. Companies are assisted with LLMs to improve their competition in market. It provides a range of endpoints for managing users, reviews, and validation processes.
Website - Live link | Demo Video
Router Protocol - Code
Contract address : "0x08eB668E21bee808e48A0449713b3494476Eb1b0",
Block explorer Transaction Hash : "0x6e9e8cc04003759822505cdf5bbb39258ba71a4f76b07e30daa0ac343ee3ded9"
Block explorer url : https://subnets-test.avax.network/c-chain
- Node.js (v14 or higher)
- MongoDB
-
Clone the repository:
git clone https://github.com/biswajit150803/critiqAll_backend.git cd critiqAll_backend
-
Install dependencies:
npm install
-
Create a .env file with the following variables:
PORT=your_port
- Start the server:
npm start
BACKEND API:
-Register a customer
- Method: POST
- Body:
{
"name": "string",
"companyEmail": "string",
"walletAddress": "string"
}
-Login a customer
- Method: POST
- Body:
{
"walletAddress": "string"
}
-Register a company
- Method: POST
- Body:
{
"companyName": "string",
"companyEmail": "string",
"companyLogoUrl": "string",
"companyDescription": "string",
"walletAddress": "string",
}
-Login a company
- Method: POST
- Body:
{
"walletAddress": "string"
}
-OTP Verification
- Method: POST
- Body:
{
"email": "string",
"otp": "string"
}
- Get Phone
- Method: GET
- Body:
{
"phone": "string",
}
- Create a phone data
- Method: POST - Body: { "sid": "string", "id": "string", "phone": "string" } ```
- URL: /
- Method: POST
- Body:
{
"productName": "string",
"productDescription": "string",
"productImageUrl": "string",
"isOrderIdTracking": "boolean",
"reviewDate": "string",
"excelFile": "string",
"questions": [
{
"question": "string",
"type": "string",
"options": [
"string"
]
}
],
}
- Fork the repository
- Create a new branch (git checkout -b feature/your-feature)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin feature/your-feature)
- Open a pull request
This project is licensed under the MIT License.