1chooo / feather-feast

Supply meal ordering system on the LINE BOT.
MIT License
3 stars 1 forks source link
linebot python3

Feather Feast

project badge Made with Python License

A brief summary of the project

The primary objective of this project is to develop a Line Bot with an ordering system to address the issue of food waste. Our approach involves integrating the concept of "SDGs" (Sustainable Development Goals) and promoting the idea of "preserving the environment for the long term."

一食二鳥——剩食媒合平台 LINE QRCODE

Project Structure

PROJECT_ROOT
├── assets                    # Docs, imgs
├── LeftoversPackage          # Project Package
│   ├── DatabaseService.py    # database function
│   ├── Tools.py              # Project tools
│   └── Generator.py          # Generator LINE BOT Drama
├── log                       # User's log
├── templates                 # flask templates
└── venv                      # pip vertial env

Enviroment:

With pip vertial environment

python request: 3.10.1

$ pip3 install virtualenv
$ virtualenv venv --python=python3.10
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ deactivate
$ rm -rf venv     # remove the venv

Config Example

# line bot info
line_bot_api = ''
handler = ''

# database settings
database_host=''
database_port=''
database_user=''
database_passwd=''
database_db=''
database_charset=''

# Domain Settings
SERVER_DOMAIN_URL = ''

# image server host
image_server_host=''
image_folder=''

With ngrok free server

brew install ngrok --cask
ngrok config add-authtoken TOKEN
python run.py
ngrok http 5002

Start multiple tunnel

Reference

License

Released under MIT by @1chooo.

This software can be modified and reused without restriction. The original license must be included with any copies of this software. If a significant portion of the source code is used, please provide a link back to this repository.