# LINE Bot template generator for yeoman 日本語はこちら
This repository contains generator of LINE Bot for yeoman. To use the package, install yeoman and the generator.
npm install -g yo
npm install -g generator-line-bot
This is optimized for Visual Studio Code, I strongly recommend using Visual Studio Code as editor. You can install it from Visual Studio Code download.
The goal of this project is to let developer start LINE Bot developement super quick. It should be like this.
If you find any issue which doesn't meet this goal, please log issue or PR.
yo line-bot MyBot --csharp
It also supports other languages. Change the last option
yo line-bot MyBot --csharp --webapi
It will ask you for ChannelSecret and Token. Pass the correct values.
Open the generated folder via VSCode and you are good to go.
Visual Studio Code will let you know which extension you should install. Follow the instruction and install them as needed.
Simply press F5 will start debug the application.
There are two project types. Azure Function or Web API.
const port = process.env.PORT || 3000;
app.listen(port, () => {
console.log(`listening on ${port}`);
});
arg_parser.add_argument('-p', '--port', default=8000, help='port')
set :port, 4567
I will write detail step by step blog later.