This repository contains the common library for the Debate Zone microservices. It provides a set of reusable components, utilities, and functions that are shared across multiple microservices in the Debate Zone ecosystem.
Follow these steps to use the Debate Zone Microservice Common Library in your project.
- Node.js (version 19.x or higher)
- npm (version 9.x or higher)
- Clone the repository:
git clone https://gitlab.com/debate-zone/debate-zone-micro-service-common-library.git
- Contribute to the repository:
- Write code
- Write tests
- Run tests
- Create new branch
- Commit changes with message:
5.
feat: <message>
for new features 6.fix: <message>
for bug fixes - Push changes to remote branch
- Create merge request
- Wait for merge request to be approved
- Merge changes to master branch
- Delete remote branch
- Delete local branch
- Repeat
To use the Debate Zone Microservice Common Library in your project, import the package and use the exported functions.
- Add line below to your .npmrc file:
@debate-zone:registry=https://gitlab.com/api/v4/packages/npm/
- Install the package:
npm install @debate-zone/micro-service-common-library --save