Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lazhari/link-shortener

Link shortener is an implementation of the hexagonal architecture using Go, MongoDB, and Redis
https://github.com/lazhari/link-shortener

go hexagonal-architecture messagepack microservice mongodb redis

Last synced: 16 days ago
JSON representation

Link shortener is an implementation of the hexagonal architecture using Go, MongoDB, and Redis

Awesome Lists containing this project

README

        

# Go micro-service using Hexagonal Architecture

> Link shortener is an implementation of the hexagonal architecture using Go, MongoDB and Redis.

![Hexagonal Architecture](doc/hexagonal-architecture.png)

## Starting the service

### Redis

```
export URL_DB=redis
export REDIS_URL=redis://localhost:6379
go run .
```

### MongoDB

```
export URL_DB=mongo
export MONGO_URL=mongodb://localhost/shortener
export MONGO_DB=shortener
export MONGO_TIMEOUT=30
go run .
```