Skip to content

Check Gold Price Today :D made for Thai and made in Thailand

Notifications You must be signed in to change notification settings

buildingwatsize/goldnoti

Repository files navigation

Gold Notification

📘 About

Check Gold Price Today :D made for Thai and made in Thailand

📦 Built With

📚 Tech Stack

./documents/tech-stack.png

📋 Features

  • API Check Price for Today
  • API Health Check
  • (Soon) LINE Chat Bot
  • (Soon) LINE Chat Alert

📝 Documents

See more at documents/README.md

🏷 Versions

v0.2.7

  • Added Error Flex Message, which response to user when unmarshalling to flex message error

v0.2.6

  • Fixed Bug: Color Hex Value is wrong when response is "ทองลง"

v0.2.5

  • Added Color Decor by difference today status change

v0.2.4

  • Edited Image Host
  • Edited Function Convert Price Number from CommafWithDigits to FormatFloat

v0.2.3

v0.2.2

  • Added Image for Flex Message
  • Edited Flex Container Size
  • Edited Text Price with Zero Padding (Floating Point)

v0.2.1

  • Fixed Bug: Invalid container type (in Flex Message Builder)

v0.2.0

  • [NEW] Supported New API Path, Get Gold Price Today for LINE Bot
  • Required as ENV Variable: CHANNEL_SECRET and CHANNEL_TOKEN

v0.1.3

  • Make App Supported Heroku Port Dynamically on Deployed

v0.1.2

  • Added Dockerfile and docker-compose for build docker images
  • Fixed Heroku Deployment (Set app stack to container via docker images)

v0.1.1

  • Heroku Deployed

v0.1.0

  • [NEW] API Check Price for Today
  • [NEW] API Health Check

⚙ Get Started

  1. Clone project

    git clone https://github.com/buildingwatsize/goldnoti.git
  2. Go to project folder

    cd goldnoti
  3. Set up environment

    export ENV=dev
  4. Run project by command

    # Normal Mode
    go run main.go
    
    # Test Mode
    go test ./... -v
  5. [Optional] Build Docker Images

    # Build with Dockerfile (ps. Don't missing . (full-stop) in the end of command!)
    docker build -t goldnoti .
    
    # Run docker-compose command for testing container running
    docker-compose up -d

😎 Author

  • Chinnawat Chimdee

❤️ Thanks

Source 1 (JSON - Gold & Etc.): http://www.thaigold.info/RealTimeDataV2/gtdata_.json

Source 2 (Web Scrapping): https://ทองคําราคา.com

Source 3 (JSON): https://thai-gold-api.herokuapp.com/latest

About

Check Gold Price Today :D made for Thai and made in Thailand

Resources

Stars

Watchers

Forks

Packages

No packages published