Giter Site home page Giter Site logo

poke-shiritori's Introduction

ポケモンしりとり

haroot が作成したポケモンしりとり SPA。

技術要素

技術 バージョン 説明
TypeScript 4.9.4 開発言語
React 18.2.0 Js 用ライブラリ
Next.js 13.1.2 フレームワーク
Bootstrap 5.2.3 CSS テンプレート
PokéAPI - ポケモン非公式 API
MySQL 8.0.27-8.0.28 データベース
ssh2 1.11.0 ssh 接続用の npm モジュール
lru-cache 7.14.1 キャッシュ用の npm モジュール

環境構築

※このプロジェクトでは、dev 環境の場合ローカルの mysql、prod 環境の場合 RDS 内にある mysql を使用しています。

DB 接続パラメータを環境変数に記載
({}内は使用するパラメータに書き換えてください)

cat << EOF >> .env
# dev環境では不要
SSH_HOST={ssh_host}
SSH_USER={ssh_user}
SSH_PORT={ssh_port}

# 必須パラメータ
MYSQL_HOST={db_host}
MYSQL_USER={db_user}
MYSQL_PASSWORD={db_password}
MYSQL_DATABASE={db_database}
MYSQL_PORT={db_port}
EOF

ssh する場合、ssh 元に接続するためのパスワード情報も必須です。

cat << EOF >> ssh_client2.pem
{パスワード情報}
EOF

モジュールのインストール

npm install
npx npm-check-updates -u # アップデート

開発

起動

npm run dev

http://localhost:3000 へアクセス

デプロイ

デプロイは vercel で行なっている。
メインへマージする事で、vercel が自動でデプロイを開始する。

vercel-submodules

デプロイ時のサブモジュールの読み込みは、vercel の install command

npx vercel-submodules --all && npm install

に変更することで実現。
vercel-submodules の運用上、(vercel が private リポジトリのサブモジュールを取れるように)Environment Variablesで、GITHUB_TOKENに github のPersonal access tokensを入れる必要がある。

poke-shiritori's People

Contributors

dependabot[bot] avatar haru8601 avatar

Watchers

 avatar

poke-shiritori'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.