Coder Social home page Coder Social logo

leader-of-lunch's Introduction

This project was bootstrapped with Bottender init script.

Introduction

Leader of lunch is a LINE Bot helping people to make decisions on daily lunch in company.

Scan the following QRCode to add Leader of lunch as your friend.

Screenshots

Sending Feedback

Always feel free to open issue to Leader of Lunch.

Setup Steps

To set up the development enviornment. You need to follow the steps:

clone the repository

git clone https://github.com/Yoctol/leader-of-lunch.git

install dependencies

Open a console at the project root path and type the following script to install dependencies:

yarn install

install PostgreSQL

In this project, I choose postgreSQL as the database.

brew install postgresql

run PostgreSQL server

brew services start postgresql

build typescript

Open a new console and typing the following script to auto compile when code changed.

tsc -w

setup .env file

LINE_ACCESS_TOKEN={ put your line access token here }
LINE_CHANNEL_SECRET= { put your line channel secret here }
TELEGRAM_ACCESS_TOKEN={ put your telegram access token here }

DEBUG=bottender:dialog
NODE_ENV=development
POSTGRESQL_URL=postgresql://:localhost:5432/lol

start the bot server

Open a new console and typing the following script to run a bot server:

npx bottender dev

set webhook

After the bot server started, the webhook url will show on the console. If you are using Telegram bot, you could set the webhook by the following script:

npx bottender telegram webhook set

If you are using LINE Bot, you could set the webhook by the LINE Official Account Manager.

leader-of-lunch's People

Contributors

etrex avatar dependabot[bot] avatar chentsulin avatar tw0517tw avatar kpman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.