Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

aws-node-rest-api-typescript: Add Mongo/Atlas connection instructions

オープン
#580 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
mongodb, typescript

調査の方向性

aws-node-rest-api-typescript の README と、例で使用されている MongoDB/Mongoose の設定から始めます。undefined uri エラーを確認できるところまで、ドキュメントに記載された実行を再現します。その後、Mongo/Mongo-Atlas の接続文字列を設定する方法と、アプリが内部サーバーエラーなしで起動することを確認する方法を文書化します。

索引モデルが issue の本文から書いたものです。

説明

Following the instructions in README.md on running the app you will see
{"message": "Internal server error"}

And a stack trace resembling

 MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
      at NativeConnection.Connection.openUri (C:\Users\luke\src\luke-typescript-rest-api-app\node_modules\mongoose\lib\connection.js:693:11)
      at C:\Users\luke\src\luke-typescript-rest-api-app\node_modules\mongoose\lib\index.js:345:10
      at C:\Users\luke\src\luke-typescript-rest-api-app\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:5

I think this is because the Mongo/Atlas connection strings need to be set first. Would be handy to have how to do this in the readme.

主要言語
JavaScript
スター
11.5k
フォーク
4.4k
平均マージ
2時間 55分
マージ済み PR(30日)
3

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

serverless/examples のほかの issue

serverless/examples の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。