This repository contains a microservice that provides a Teams Service, allowing clients to query team lists, team members, and their details. It also supports adding and removing teams and team members.
The repository follows a well-organized structure to ensure clarity and maintainability:
.github
workflows
dotnet.yml
src
TeamsService
Controllers
MembersController
TeamsController
Models
Member
Team
Persistence
ITeamRepository
MemoryTeamRepository
test
IntegrationTests
UnitTests
To get started with the Teams Service microservice, follow these steps:
- Clone this repository:
git clone https://github.com/prateekchaplot/TeamsService.git
- Navigate to the project directory:
cd TeamsService/src/TeamsService
- Build the project:
dotnet build
- Run the microservice:
dotnet run --project src/TeamsService
- Query team lists: Use the
TeamsController
to retrieve a list of teams. - Query team members: Use the
MembersController
to retrieve information about team members. - Add teams: Utilize the
TeamsController
to add new teams. - Add team members: Use the
MembersController
to add new team members. - Remove teams and members: Implement deletion using the appropriate controllers.
This repository includes both unit tests and integration tests:
- To run unit tests: Navigate to the
test/UnitTests
directory and rundotnet test
. - To run integration tests: Navigate to the
test/IntegrationTests
directory and rundotnet test
.
Contributions to this microservice are welcome. To contribute, follow these steps:
- Fork this repository.
- Create a new branch:
git checkout -b feature/new-feature
. - Make your changes and commit them:
git commit -m "Add new feature"
. - Push to the branch:
git push origin feature/new-feature
. - Open a pull request.
This project is licensed under the MIT License.