{"repo":"yuiseki/crisis-news-map-next","free":true,"listed":false,"github":"https://github.com/yuiseki/crisis-news-map-next","clone":"git clone https://github.com/yuiseki/crisis-news-map-next.git","description":"🗺 Source code of https://crisis.yuiseki.net/ . Web service that collects disaster-related news articles and displays them on a map.","language":"TypeScript","stars":18,"topics":["leaflet","react-leaflet","nextjs","typescript","mongodb","react"],"license":"WTFPL","category":"saas-starters-boilerplates","readme_excerpt":"crisis.yuiseki.net 概要 - Next.js で実装されたアプリケーションです - サーバーサイド、クライアントサイド、バッチジョブスクリプトから構成されています - Typescript化されています - CSS の記述にTailwind CSSを使っています - 地図表示のためにreact-leafletを使っています - DB として MongoDB を使うためにMongooseを使っています - テストライブラリとしてJestを使っています 開発時の注意 - husky という、コミット・プッシュ前に自動的に ESLint と tsc を実行する Git Hook が使われています - ESLint と tsc でエラーになるコードが含まれている場合にはコミットができないので注意してください 開発環境 - Node.js v16.3.0 - MongoDB v4.4.6 基本的な開発方法 - MongoDB サーバーを用意する - ローカルで MongoDB を動かしても良いですが、MongoDB Atlas の無料枠でも問題ありません - リポジトリを Fork する - .env.example を元に .env ファイルを設置する - npm ci で依存関係をインストールする - npm install はなるべく使わないでください - npm run dev で開発サーバーを起動する - http://localhost:3000/ で表示できます - npm run lint で ESLint による lint を実行する - npm test で jest によるテストを実行する バッチジョブの実行 以下のバッチジョブが存在します - npm run job:river - 河川の氾濫情報を収集します - npm run job:dispatch - 消防緊急出動の情報を収集します - npm run job:massmedia - マスメディアのニュース記事を収集します - npm run job:hatebu - はてなブックマークからニュース記事を収集します","default_branch":null,"files":null,"tree":[],"storefront":"/r/yuiseki","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yuiseki/crisis-news-map-next/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}