Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mfloriach/repositories-example

Small project to show how to achieve polymorphism with repositories
https://github.com/mfloriach/repositories-example

clean-architecture go mongo mysql testcontainers

Last synced: 7 days ago
JSON representation

Small project to show how to achieve polymorphism with repositories

Awesome Lists containing this project

README

        

# Repositories example

[![test](https://github.com/mfloriach/repositories-example/actions/workflows/test.yml/badge.svg)](https://github.com/mfloriach/repositories-example/actions/workflows/test.yml)
![go](https://img.shields.io/badge/go-1.21-blue)

Small project to show how to achieve polymorphism with repositories and design flexible interfaces to filter resuts.

This project use:
- Mysql
- MongoDB

Usage:
```bash
go mod download
go test -run ^TestUser repos/repositories
```