Git Product home page Git Product logo

mint's Introduction

Mint

pythonで作った2ch専ブラ互換の掲示板です。

特徴

  • Quartにより非同期的に処理されるレスポンス。
  • PostgreSQLにより(従来のファイルで管理する掲示板より)高速な書き込み。
    (なお、速度はサーバーの性能によって変動します)
  • python-socketioによりリアルタイムな閲覧人数を取得・スレッドのオートリロード (なお、同期速度はサーバーの性能によって(ry)

今後追加される予定の機能

  • プラグイン機能
  • Turnstileによる認証
  • BBSMENU

現在のバグ情報

  • トリップの変換が正しくないらしい (不明)

テスト環境

  • Python 3.11
  • supabase
  • render.com Free

How to install

まず、以下のコマンドを使用し、Mintで使用されるライブラリをインストールします。

pip install -r requirements.txt

(パスが通っていない場合は、以下のコマンドを使用してください。)

python3 -m pip install -r requirements.txt

(オプション).envファイルをmain.pyと同じパスに作成し、以下のように設定します。

database=<データベースのURL>
ID_GENERATE_SECRET=<ID生成のために使うシークレット>
debug=FALSE

(.envファイルを使用しない場合は、自分で環境変数を設定してください。)
最後に、main.pyを実行します。

hypercorn main:app -b 0.0.0.0:10000

このコマンドではデフォルトではポート10000でリッスンします。
設定を変えたい場合、setting.pyを編集してください。
データベースの設定についてはdatabase.mdをお読みください。

mint's People

Contributors

nennneko5787 avatar

Stargazers

ニート avatar  avatar

Watchers

ニート avatar

Forkers

mumei2321

mint's Issues

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.