Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neography7/questr-question-srvc
This repository contains the question microservice portion of the Questr Q&A application.
https://github.com/neography7/questr-question-srvc
grpc mongodb nestjs
Last synced: 6 days ago
JSON representation
This repository contains the question microservice portion of the Questr Q&A application.
- Host: GitHub
- URL: https://github.com/neography7/questr-question-srvc
- Owner: Neography7
- License: other
- Created: 2023-11-21T18:01:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T18:02:13.000Z (about 1 year ago)
- Last Synced: 2024-12-05T15:12:09.533Z (2 months ago)
- Topics: grpc, mongodb, nestjs
- Language: TypeScript
- Homepage: http://www.appquestr.com
- Size: 190 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QUESTR - Anonymous Q&A Application
This repository contains the question microservice portion of the Questr Q&A application.
## QUESTR - All Repositories
- [Frontend](https://github.com/Neography7/questr-front)
- [API Gateway](https://github.com/Neography7/questr-gateway)
- [User Microservice](https://github.com/Neography7/questr-user-srvc)
- [Auth Microservice](https://github.com/Neography7/questr-auth-srvc)
- [Question Microservice](https://github.com/Neography7/questr-question-srvc)
- [GRPC Protos](https://github.com/Neography7/questr-proto)
- [Deployment](https://github.com/Neography7/questr-deployment)## Description
The Questions microservice, developed using Nest.js, manages core functionalities related to querying, handling, and providing answers to questions within the platform. It oversees tasks such as creating, retrieving, updating, and deleting questions, as well as supplying answers to questions.
This microservice collaborates closely with the User service, allowing seamless integration of user-related information alongside question-and-answer data. It relies on MongoDB for efficient data storage and retrieval concerning questions and their respective answers.
This microservice communicates with the api-gateway and other services via GRPC.
## Technologies
- **Nest.js:** Employed for developing the microservice architecture.
- **MongoDB:** Utilized for database storage.
- **TypeORM:** Used as an ORM for database interactions.
- **gRPC:** Used for communication between microservices.
- **i18next:** Used for internationalization (i18n) support.
- **class-validator:** Used for validation within Nest.js.
- **class-transformer:** Used for object transformation within Nest.js.
- **JWT:** Utilized for session authentication and token generation.## Installing
Note: Please don't forget to use this service with api-gateway and question and auth microservices.
First setup the env file. You must provide a Mongo DB URL. If nessesery change the user service URL.
```env
NODE_ENV=productionUSER_SERVICE=0.0.0.0:5002
MONGODB_URL=mongodb://localhost:27017
```And then, install the packages.
```bash
# Install required packages
npm install
```Lastly start the service. This service will run on port 5003.
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## License
This project is licensed under the [Beerware License](LICENSE).
If you find this project useful and we ever meet, you might consider buying me a beer in return.
## Contact
If you have any questions or feedback regarding the project, feel free to get in touch:
- Email: [email protected]
- LinkedIn: [İlker Akyel](https://www.linkedin.com/in/ilker-akyel/)
- Website: [ilkerakyel.com](https://www.ilkerakyel.com)