StormSync Provider is a Go-based library designed to facilitate data synchronization and management. This project includes components for API interactions, data consumption, and storage handling.
Storm Sync API Documentation Based on the information from the repository, here is a detailed README for the StormSync Provider:
To get started with StormSync Provider, clone the repository and build the project using Go:
git clone https://github.com/stormsync/provider.git
cd provider
go buildTo run the server, navigate to the cmd/server directory and execute:
cd cmd/server
go build -o app main.go
chmod +x app
./appThis will start the StormSync server, which can then be accessed via the configured API endpoints.
Configuration settings for the StormSync Provider are typically defined in environment variables. Example configuration includes setting up the database connection, API keys, and other needed settings.
These env vars are required to run this application.
API_KEY="xxxx"
DB_PASS="xxxx"
DB_ADDRESS="xxxx"
DB_NAME="xxxxx"
DB_USER="xxxxxx"
WEB_SERVER_ADDRESS="0.0.0.0:8080",
KAFKA_ADDRESS="xxxxx"
KAFKA_USER="xxxxxx"
KAFKA_PASSWORD="xxxxxx"
CONSUMER_TOPIC="transformed-weather-data" Run tests using the following command:
go test ./...