All Projects → momocus → sakazuki

momocus / sakazuki

Licence: MIT license
自宅の酒を管理するアプリケーション

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
typescript
32286 projects
SCSS
7915 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to sakazuki

Cml
♾️ CML - Continuous Machine Learning | CI/CD for ML
Stars: ✭ 2,843 (+21769.23%)
Mutual labels:  hacktoberfest2021
Portfolio
Have a portfolio website? Add it here, showcase it to the world!
Stars: ✭ 14 (+7.69%)
Mutual labels:  hacktoberfest2021
Hactoberfest2021
Hacktoberfest2021
Stars: ✭ 45 (+246.15%)
Mutual labels:  hacktoberfest2021
Wttr.in
⛅ The right way to check the weather
Stars: ✭ 16,345 (+125630.77%)
Mutual labels:  hacktoberfest2021
General-Purpose-Scripts
A repository containing several general purpose Python scripts to automate daily and common tasks.
Stars: ✭ 47 (+261.54%)
Mutual labels:  hacktoberfest2021
Hacktoberfest 2021
This repository aims to help code beginners with their first successful pull request and open source contribution. Happy coding!
Stars: ✭ 109 (+738.46%)
Mutual labels:  hacktoberfest2021
Api
API for Current cases and more stuff about COVID-19 and Influenza
Stars: ✭ 2,323 (+17769.23%)
Mutual labels:  hacktoberfest2021
HacktoberFest2021
No description or website provided.
Stars: ✭ 29 (+123.08%)
Mutual labels:  hacktoberfest2021
Hackoween-Hacktoberfest2021
GitInto's Hacktoberfest 2021 Repository
Stars: ✭ 28 (+115.38%)
Mutual labels:  hacktoberfest2021
robo4j
Robo4j.io robotics/IoT framework
Stars: ✭ 65 (+400%)
Mutual labels:  hacktoberfest2021
Igel
a delightful machine learning tool that allows you to train, test, and use models without writing code
Stars: ✭ 2,956 (+22638.46%)
Mutual labels:  hacktoberfest2021
hacktoberfest
Contribute to this repo for your T-shirt, must be relevant that can add some value to this repo.
Stars: ✭ 33 (+153.85%)
Mutual labels:  hacktoberfest2021
ipv6
IPv6-adresse.dk source & data
Stars: ✭ 27 (+107.69%)
Mutual labels:  hacktoberfest2021
Raty
🌟 Raty - A Star Rating Plugin
Stars: ✭ 2,292 (+17530.77%)
Mutual labels:  hacktoberfest2021
tempus
A chrome extension that allows you to manage and view timestamped YouTube comments efficiently.
Stars: ✭ 48 (+269.23%)
Mutual labels:  hacktoberfest2021
Linkedin Skill Assessments Quizzes
Full reference of LinkedIn answers 2021 for skill assessments, LinkedIn test, questions and answers (aws-lambda, rest-api, javascript, react, git, html, jquery, mongodb, java, Go, python, machine-learning, power-point) linkedin excel test lösungen, linkedin machine learning test
Stars: ✭ 7,014 (+53853.85%)
Mutual labels:  hacktoberfest2021
Hacktoberfest-Contribution
This repository is especially for beginners who want to contribute to Open Source and complete the Hacktoberfest Challenge.
Stars: ✭ 12 (-7.69%)
Mutual labels:  hacktoberfest2021
Kuberam
Kuberam is built on jetpack compose + Auth0 during Hashnode Hackathon.
Stars: ✭ 33 (+153.85%)
Mutual labels:  hacktoberfest2021
Hacktoberfest-2021
This is A Hacktoberfest 2021 Python Repository
Stars: ✭ 13 (+0%)
Mutual labels:  hacktoberfest2021
Data-Structures-And-Algorithms
Important data structure and algorithms codes and concept's open-source repository.
Stars: ✭ 48 (+269.23%)
Mutual labels:  hacktoberfest2021

SAKAZUKI

Check Test

自宅の酒を管理するアプリケーション

Screenshot

What is SAKAZUKI?

  • 日本酒の在庫を登録・開封・空で管理
  • スペックや味わいを定量値・定性値で保存
  • 在庫や過去に飲んだ日本酒を全文検索
  • 在庫量と総飲酒量の表示
  • 複数人での在庫の共有
  • PC・スマホ対応のレスポンシブデザイン

Watch a demo

Requirements

  • Ruby = 3.1.1
  • Bundler
  • Yarn🐈 >= 1.22.4
  • Node.js >= 12.20.1
  • PostgreSQL >= 12.0
  • ElasticSearch >= 7.10.2
    • Japanese (kuromoji) Analysis Plugin
    • ICU Analysis Plugin
  • ImageMagick >= 6.9

How to use

  • 依存関係のインストール
    • bundle install
    • yarn install
  • .env ファイルの作成
    • PostgreSQL の設定
    • Google AdSense のクライアント ID の設定(Google AdSense を使う場合)
cp dotenv.example .env
# .env
POSTGRES_USERNAME=[YOUR POSTGRESQL NAME]
POSTGRES_PASSWORD=[YOUR POSTGRESQL PASSWORD]
  • 管理者ユーザの設定(オプション)
# db/seed.rb
User.create!(
  email: "[YOUR EMAIL ADDRESS]",
  password: "[YOUR ACCOUNT PASSWORD]",
  admin: true,
  confirmed_at: Time.current,
)
  • DB の作成
    • bundle exec rails db:create
    • bundle exec rails db:migrate
    • bundle exec rake parallel:setup、並列テストを使う場合
  • 管理者ユーザの作成
    • bundle exec rails db:seed
  • サーバの起動
    • bundle exec rails server
  • SAKAZUKI へのアクセス

How to recieve EMail from SAKAZUKI in development environment

Development 環境において、SAKAZUKI からのメール通知は letter_opener で確認する。

How to deploy to Heroku

SAKAZUKI の Production 環境は Heroku を対象にしている。 このとき SAKAZUKI は画像を Cloudinary にアップロードする。 SAKAZUKI を Heroku で動かすには、メールと Cloudinary の設定がいる。 これらの設定は Rails の credentials を使って設定する。

$ rm config/credentials/production.yml.enc config/credentials/production.key  # デフォルトの設定の削除
$ bundle exec rails credentials:edit --environment production
...編集画面が開く
# config/credentials/production.yml.encの設定例
mail:
  smtp: "smtp.gmail.com"
  domain: "gmail.com"
  port: 587
  user_name: "[YOUR MAIL ADDRESS]@gmail.com"
  password: "[YOUR MAIL PASSWORD]"
cloudinary:
  cloud_name: [YOUR CLOUD NAME]
  api_key: [YOUR API KEY]
  api_secret: [YOUR API SECRET]
  enhance_image_tag: true
  static_file_support: false
  • Credentials の Key を Heroku に登録
    • heroku-cli が必要
$ heroku config:set RAILS_MASTER_KEY=$(cat config/credentials/production.key)
...
  • Heroku に SAKAZUKI をデプロイする

How to develop with Docker

レポジトリを Docker Bind するため、レポジトリを WSL ファイルシステムに置くと動きません。

  • Docker イメージのビルド
$ docker-compose build
...
  • PostgreSQL コンテナ、ElasticSearch コンテナの初期設定
$ docker-compose run --rm web bundle exec rails db:create
Creating volume "sakazuki_db_storage" with local driver
Creating volume "sakazuki_es_data" with local driver
Creating volume "sakazuki_es_plugins" with local driver
Creating sakazuki_db_1 ... done
Creating sakazuki_es_1 ... done
Creating sakazuki_web_run ... done
Created database 'sakazuki_development'
Created database 'sakazuki_test'
$ docker-compose run --rm web bundle exec rake parallel:setup
...
$ docker-compose run --rm web bundle exec rails db:migrate
Creating sakazuki_web_run ... done
...
Model files unchanged.
$ docker-compose run --rm web bundle exec rails db:seed
Creating sakazuki_web_run ... done
$ docker-compose run --rm es elasticsearch-plugin install analysis-icu
Creating sakazuki_es_run ... done
-> Installing analysis-icu
-> Downloading analysis-icu from elastic
[=================================================] 100%??
-> Installed analysis-icu
$ docker-compose run --rm es elasticsearch-plugin install analysis-kuromoji
Creating sakazuki_es_run ... done
-> Installing analysis-kuromoji
-> Downloading analysis-kuromoji from elastic
[=================================================] 100%??
-> Installed analysis-kuromoji
  • Docker イメージの起動
$ docker-compose up
...
  • Gem/Node Package の更新があった場合は、docker-compose buildでイメージを更新する

How to Contribute

  • GitHub の Issue/Pull Request にて受けつけています
    • 現状では少数開発なので、受け入れるレベルは明確化されていません
  • Pull Request は GitHub Actions を通してください
    • 手動でチェックを走らせる場合はcli-scripts/run-all-checks.shで実行できます

Special Thanks

  • 筆によるすてきな SAKAZUKI by 豆腐屋さん
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].