Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.22 KB

README.md

File metadata and controls

67 lines (45 loc) · 1.22 KB

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 .