Skip to content

Commit

Permalink
Merge pull request #24 from kkdai/support_render
Browse files Browse the repository at this point in the history
Support render.com
  • Loading branch information
kkdai authored Jan 4, 2023
2 parents 252e75e + 03dfd77 commit da58f70
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
32 changes: 14 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
LINE BotTemplate: A simple Golang LINE Bot Template for LINE Bot API
==============

[![Join the chat at https://gitter.im/kkdai/LineBotTemplate](https://badges.gitter.im/kkdai/LineBotTemplate.svg)](https://gitter.im/kkdai/LineBotTemplate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![GoDoc](https://godoc.org/github.com/kkdai/LineBotTemplate.svg?status.svg)](https://godoc.org/github.com/kkdai/LineBotTemplate)

![Go](https://github.com/kkdai/LineBotTemplate/workflows/Go/badge.svg)

[![goreportcard.com](https://goreportcard.com/badge/github.com/kkdai/LineBotTemplate)](https://goreportcard.com/report/github.com/kkdai/LineBotTemplate)

[![GoDoc](https://godoc.org/github.com/kkdai/LineBotTemplate.svg?status.svg)](https://godoc.org/github.com/kkdai/LineBotTemplate) ![Go](https://github.com/kkdai/LineBotTemplate/workflows/Go/badge.svg) [![goreportcard.com](https://goreportcard.com/badge/github.com/kkdai/LineBotTemplate)](https://goreportcard.com/report/github.com/kkdai/LineBotTemplate)

Installation and Usage
=============
Expand All @@ -23,31 +16,36 @@ Installation and Usage
- Open LINE OA manager from "Basic Setting" tab.
- Go to Reply setting on OA manager, enable "webhook"

### 2. Deploy this on Web Platform

### 2. Just Deploy this on Heroku
You can choose [Heroku](https://www.heroku.com/) or [Render](http://render.com/)

#### 2(A) Deploy this on Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

- Input `Channel Secret` and `Channel Access Token`.
- Remember your heroku, ID.

#### 2(B) Deploy this on Rener

[![Deploy to Render](http://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)

### 3. Go to LINE Bot Dashboard, setup basic API

- Setup your basic account information. Here is some info you will need to know.
- `Callback URL`: https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback
- `Callback URL`: <https://{YOUR_HEROKU_SERVER_ID}.herokuapp.com/callback>

It all done.


### Video Tutorial:
### Video Tutorial

- [How to deploy LINE BotTemplate](https://www.youtube.com/watch?v=0BIknEz1f8k)
- [Hoe to modify your LINE BotTemplate code](https://www.youtube.com/watch?v=ckij73sIRik)

### Chinese Tutorial

### Chinese Tutorial:

如果你看得懂繁體中文,這裡有[中文的介紹](http://www.evanlin.com/create-your-line-bot-golang/)
如果你看得懂繁體中文,這裡有[中文的介紹](http://www.evanlin.com/create-your-line-bot-golang/)

Inspired By
=============
Expand All @@ -61,19 +59,17 @@ Project52

It is one of my [project 52](https://github.com/kkdai/project52).


License
---------------

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
<http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

13 changes: 13 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
- type: web
name: LineBotTemplate
env: go
buildCommand: go build -o app
startCommand: ./app
plan: free
autoDeploy: false
envVars:
- key: ChannelAccessToken
sync: false
- key: ChannelSecret
sync: false

0 comments on commit da58f70

Please sign in to comment.