Heroes Social Network
README in Portuguese
![](https://github.com/LeandroAlcantara-1997/heroes-social-network/raw/v0.0.7/docs/assets/ironman.png)
About
Heroes social network is a project created to make life easier for superhero fans, offering resources such as:
- Search for character characteristics;
- Team to which characters belong;
- HQ data;
- Games, Movies and Series Data;
Here you will find characters from companies such as:
How to execute
- Climb the dependencies
make docker-up
- Running migration command:
make migration-up
- After uploading the dependencies, run:
make run
To configure Splunk, access the platform in settings -> data inputs -> HTTP Event Collector -> Global Settings and disable SSL.
ENVIRONMENTS |
EXAMPLE VALUES |
API_PORT |
8080 |
DB_NAME |
heroes |
DB_USER |
user |
DB_PASSWORD |
passw0rd |
DB_HOST |
postgres-database |
DB_PORT |
5432 |
SPLUNK_PASSWORD |
passw0rd |
SPLUNK_HOST |
http://splunk:8088 |
SPLUNK_TOKEN |
e26c8b3f-fe44-490c-82f9-22c5bf8ab3b5 |
SPLUNK_ASSYNC |
false |
CACHE_HOST |
redis-cache |
CACHE_PORT |
6379 |
CACHE_PASSWORD |
passw0rd |
CACHE_READ_TIMEOUT |
2 |
CACHE_WRITE_TIMEOUT |
2 |
ALLOW_ORIGINS |
http://localhost:3000,https://localhost:8080 |
OTEL_EXPORTER_OTLP_ENDPOINT |
http://jaeger:4318 |
ENVIRONMENT |
local |
SERVICE_NAME |
heroes-social-network |
Technologies
- Golang 1.20;
- PostgreSQL;
- Redis as cache;
- Splunk;
- Traces with Jaeger;
- OpenTelemetry;
- Swagger;
- Graceful shutdown;
- Dev Container with Docker;
Entity relationship diagram
![diagram](https://github.com/LeandroAlcantara-1997/heroes-social-network/raw/v0.0.7/docs/assets/heroes-social-network.jpg)