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: 3 months ago
JSON representation
Link shortener is an implementation of the hexagonal architecture using Go, MongoDB, and Redis
- Host: GitHub
- URL: https://github.com/lazhari/link-shortener
- Owner: Lazhari
- Created: 2020-09-08T16:49:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T22:26:12.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T17:51:56.521Z (4 months ago)
- Topics: go, hexagonal-architecture, messagepack, microservice, mongodb, redis
- Language: Go
- Homepage:
- Size: 259 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

## 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 .
```