Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lazhari/link-shortener
- Owner: Lazhari
- Created: 2020-09-08T16:49:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T22:26:12.000Z (over 4 years ago)
- Last Synced: 2024-11-21T03:49:39.508Z (3 months ago)
- Topics: go, hexagonal-architecture, messagepack, microservice, mongodb, redis
- Language: Go
- Homepage:
- Size: 259 KB
- Stars: 5
- Watchers: 3
- 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.
![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 .
```