Giter VIP home page Giter VIP logo

walican's Introduction

Walican

It is a product that combines a line bot and a web application for managing money lending and borrowing between groups.

DEMO

Group Page


Regist Borrowing Page


Borrowing Detail Page


Features

  • Walican can record lending money and splitting bills between groups.
  • Walican can convert foreign currency to Japanese currency and record.
  • You can check the exchange rate by Walican.

Requirement

Look at package.json.

Usage

  1. Make db dir.
$ mkdir db
  1. Settings for using LINE api.
$ touch .env
# .env

SECRET_KEY={your channel access key}
ACCESS_TOKEN={your channel access token}
HOST_URL={host url}

CHANNEL_ID={your channel id for login}
CHANNEL_SECRET={your channel secret for login}
  1. Run docker-compose
$ docker-compose up -d --build

walican's People

Contributors

ytakaya avatar dependabot[bot] avatar

Watchers

 avatar

walican's Issues

取引履歴を確認したい

  • 前に登録した割り勘は認証されたかを確認したい
  • あの支払いは登録したかを確認したい

ログイン画面の作成

  • ログインにはlineのoauthを使うので、ボタンだけあれば良い
  • ログイン済みか否かをisAuthenticatedで判定
  • ログイン失敗時にリダイレクト

コンテナ化する

  • dockerでアプリの起動をできるようにする
  • docker-composeを使う
  • mongodbとwebappのコンテナが必要
  • コンテナ間で通信

opsのscript書く

  • docker buildしてdockerhubにプッシュ
  • gce上のコンテナを入れ替える
  • dbを転送する

認可処理の実装

  • 認証処理ができたので認可処理を実装する #39

認可が必要な箇所

  • ユーザーページの閲覧
    • 正しいユーザーかどうか
  • 貸し借りの認証
    • ユーザーが正しいchildrenか
  • グループページの閲覧
    • ユーザーがグループに属しているか

認証ボタンを機能させる

  • 認証メッセージをコピーして送信させる。
  • メッセージの送信主と支払いのpayment childrenが一致しているか確認。
  • 処理してメッセージを返す。

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.