Giter Site home page Giter Site logo

emurenmrz / book-manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 10.0 585 KB

This is a web application for managing the library collection based on ISBNs.

Home Page: https://book-manager.mrz-net.org/

License: MIT License

Ruby 47.12% TypeScript 37.81% SCSS 13.31% JavaScript 0.82% Shell 0.94%
react ruby sequel sinatra typescript postgresql scss

book-manager's Introduction

book-manager

ISBNを元に蔵書の管理を行うWEBアプリです。

Requirements

  • Apacheなど適当なhttpd(Proxy機能が必要)
  • Ruby
  • PostgreSQL with PGroonga

Usage

APサーバの準備

  1. apディレクトリにsecret.rbを作成して、以下の定数を定義します。
定数 内容 要・不要
CACHE_DIR string 書影画像([ISBN].jpg)を保存するディレクトリへの絶対パス 必須
RACK_SESSION_SECRET string Rackのession secret 必須
DB_HOST string database address 必須(不要な場合はnilを指定)
DB_NAME string database名 必須
DB_USER string DB用ユーザー名 必須
DB_PWD string DB用パスワード 必須(不要な場合はnilを指定)
RAKUTEN_APP_ID integer 楽天APIのApplication ID オプション
RAKUTEN_AFFILIATE_ID string 楽天APIのAffiliate ID オプション
  1. apディレクトリで以下のコマンドを実行します。
> bundle install
> bundle exec pumactl start

WEBサーバの準備

  1. Document rootとしてdistディレクトリを指定します。
  2. Reverse proxy設定等で、/api以下へのアクセスを上記APサーバ(http://localhost:9292)へ転送するように設定します。

book-manager's People

Contributors

emurenmrz avatar

Watchers

 avatar  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.