SMR API
The Satisfactory Mod Repository backend API
Running
Execute:
go run cmd/api/serve.go
Configuration
Running the API has a lot of pre-requisites.
It is suggested you create a configuration file at config.json
(but you can also use environment variables).
Main configuration options:
- Postgres (started with
docker-compose -f docker-compose-dev.yml up -d
) - Redis (started with
docker-compose -f docker-compose-dev.yml up -d
) - S3 or B2
- GitHub OAuth (https://github.com/settings/developers)
- Google OAuth (https://console.developers.google.com/)
- Facebook OAuth (https://developers.facebook.com/apps/)
- Paseto keys (generated via
go run cmd/paseto/main.go
) - Frontend URL (needed for Google OAuth, otherwise can be ignored)
- VirusTotal API key
The config format can be seen in config/config.go
(each dot means a new level of nesting).