Groupchat microservice for PTSS Support, built with GO and FCM SDK and FCM Admin SDK. This service will use a Azure table storage database.
- Viper (
github.com/spf13/viper v1.19.0): A powerful library for loading configuration from files, environment variables, and more.
-
Clone the repository:
git clone <https://github.com/PTSS-Support/Groupchat-Service.git> cd Groupchat-Service
-
Install dependencies:
go mod tidy
-
Configure environment variables: Create a
.envfile in the root directory of the project using the provided.env.examplefile as a reference. Example:# Firebase Configuration FIREBASE_CREDENTIAL_FILE=./config/firebase-credentials-dev.json # Azure Storage Configuration AZURE_GROUPCHAT_CONNECTION_STRING=your_connection_string # Application Configuration APP_ENV=development APP_PORT=8080 -
Run the application:
go run main.go