hackathon-starter icon indicating copy to clipboard operation
hackathon-starter copied to clipboard

node app.js fails

Open kindlydodo opened this issue 1 year ago • 1 comments
trafficstars

What i do: I follow https://github.com/sahat/hackathon-starter?tab=readme-ov-file#getting-started

Step: node app.js

fails:

Run this app using "npm start" to include sass/scss/css builds.

(node:16202) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
App is running on http://localhost:8080 in development mode.
Press CTRL-C to stop.
MongoServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017
    at Timeout._onTimeout (/home/besc/work/node-Starter/node_modules/mongoose/node_modules/mongodb/lib/sdam/topology.js:278:38)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  reason: TopologyDescription {
    type: 'Unknown',
    servers: Map(1) { 'localhost:27017' => [ServerDescription] },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: null,
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [Symbol(errorLabels)]: Set(0) {}
}

kindlydodo avatar May 20 '24 09:05 kindlydodo

It looks like haven't setup a mongodb instance. See the Prereq section in the readme.md for the full list of prereqs for running the app :) : https://github.com/sahat/hackathon-starter?tab=readme-ov-file#prerequisites

MongoServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017

YasharF avatar May 26 '24 14:05 YasharF