https://github.com/bighnesh0007/speakx-grpc
A Search functionality for a set of questions provided in a JSON file. The backend should be developed using either Node.js or Golang, leveraging gRPC for communication. QestSeaach : The frontend should be built using React and will include a search box to display query results.
https://github.com/bighnesh0007/speakx-grpc
grpc grpc-server json-api nextjs14 nodejs pagination query typescript
Last synced: 7 months ago
JSON representation
A Search functionality for a set of questions provided in a JSON file. The backend should be developed using either Node.js or Golang, leveraging gRPC for communication. QestSeaach : The frontend should be built using React and will include a search box to display query results.
- Host: GitHub
- URL: https://github.com/bighnesh0007/speakx-grpc
- Owner: bighnesh0007
- Created: 2025-01-25T19:59:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T14:26:51.000Z (over 1 year ago)
- Last Synced: 2025-03-30T07:31:43.002Z (about 1 year ago)
- Topics: grpc, grpc-server, json-api, nextjs14, nodejs, pagination, query, typescript
- Language: TypeScript
- Homepage: https://sp-self.vercel.app/
- Size: 119 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README





# gRPC Search Questions Application
## Prerequisites
- Node.js (v14+)
- npm
- gRPC
- MongoDB
## Installation
### Clone Repository
```bash
git clone https://github.com/bighnesh0007/speakx-gRPC.git
cd speakx-gRPC
```
### Install Dependencies
```bash
# Install server dependencies
cd server
npm install
# Install client dependencies
cd ../client
npm install
```
## Running the Server
```bash
cd server
npm start
# Server runs on port 50051
```
## Running the Client
```bash
cd client
npm run dev
```
## API Endpoint: `/api/search`
### Parameters
- `title`: Question title (required)
- `type`: Question type (optional)
- `page`: Page number (optional, default: 1)
- `pageSize`: Results per page (optional, default: 10)
### Example Request
```
/api/search?title=math&type=easy&page=1&pageSize=10
```
## Workflow
1. User inputs search query
2. Client sends GET request to Next.js API route
3. Next.js API route forwards request to gRPC server
4. gRPC server queries MongoDB
5. Results returned to client
## Troubleshooting
- Ensure MongoDB is running
- Check gRPC server connection
- Verify network configurations
## License
MIT License
---
**Repository**: [GitHub](https://github.com/bighnesh0007/speakx-gRPC)