Skip to content

afifurrohman-id/tempsy-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tempsy Client is a web client for Tempsy API

Usage

Requirements

  • WSL2 (Windows Subsystem for Linux)

    Only need if you use Windows OS

  • Git (version >= 2.43.x)
  • Go (version >= 1.21.x)
  • Docker (version >= 24.0.x)

    optional, (only need if you want to build image)

Installation

  • Clone this repository
git clone https://github.com/afifurrohman-id/tempsy-client.git
  • Go to project directory
cd tempsy-client
  • Insert Variable to .env file
cat <<EOENV > configs/.env

OAUTH2_CONFIG={"clientId": "EXAMPLE_CLIENT_ID","clientSecret": "EXAMPLE_SECRET","callbackUrl": "https://example.com/auth","scopes": ["https://www.googleapis.com/auth/userinfo.profile"]} # Base64 Encoded JSON
APP_ENV=testing
API_SERVER_URL=https://api.example.com
PORT=8080

EOENV
  • Download dependencies
go mod tidy

Run

  • Run the app
go run cmd/client/main.go
  • Build
go build -o tempsy-client cmd/client/main.go
  • Build Image
docker build -f build/package/Containerfile -t tempsy .