This repository contains the question microservice portion of the Questr Q&A application.
- Frontend
- API Gateway
- User Microservice
- Auth Microservice
- Question Microservice
- GRPC Protos
- Deployment
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.
- 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.
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.
NODE_ENV=production
USER_SERVICE=0.0.0.0:5002
MONGODB_URL=mongodb://localhost:27017And then, install the packages.
# Install required packages
npm installLastly start the service. This service will run on port 5003.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodThis project is licensed under the Beerware License.
If you find this project useful and we ever meet, you might consider buying me a beer in return.
If you have any questions or feedback regarding the project, feel free to get in touch:
- Email: ilkerakyel97@gmail.com
- LinkedIn: İlker Akyel
- Website: ilkerakyel.com
