Check Gold Price Today :D made for Thai and made in Thailand
- API Check Price for Today
- API Health Check
- (Soon) LINE Chat Bot
- (Soon) LINE Chat Alert
See more at documents/README.md
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
toFormatFloat
v0.2.3
- Used go-humanize for Converting Price Variable
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
andCHANNEL_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
-
Clone project
git clone https://github.com/buildingwatsize/goldnoti.git
-
Go to project folder
cd goldnoti
-
Set up environment
export ENV=dev
-
Run project by command
# Normal Mode go run main.go # Test Mode go test ./... -v
-
[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
- Chinnawat Chimdee
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