Git Product home page Git Product logo

Comments (11)

scottstensland avatar scottstensland commented on September 17, 2024

Yes I am getting same HANGING issue due to obsolete database as per

var mongoose = require('mongoose');
mongoose.connect('mongodb://node:[email protected]:27017/Iganiq8o');

The tutorial would have been better off just doing a local mongodb database

from node-api.

oscarmorrison avatar oscarmorrison commented on September 17, 2024

bump

from node-api.

chris-sev avatar chris-sev commented on September 17, 2024

Is it not working when using a local mongodb database?

That demo database mongodb://node:[email protected]:27017/Iganiq8o was shut down because too many people were just using that instead of creating their own.

from node-api.

mobyg avatar mobyg commented on September 17, 2024

I am having the same issue. Instead of using a local mongodb, I am supplying the credentials to my own hosted mongolab database and everything.

from node-api.

oscarmorrison avatar oscarmorrison commented on September 17, 2024

I got it working with local DB. Won't work with my own mongo lab for some reason

from node-api.

mobyg avatar mobyg commented on September 17, 2024

Did you end up having to use an alternative db?
On Feb 14, 2016 7:54 PM, "Oscar Morrison" [email protected] wrote:

I got it working with local DB. Won't work with my own mongo lab for some
reason


Reply to this email directly or view it on GitHub
#5 (comment).

from node-api.

mobyg avatar mobyg commented on September 17, 2024

I updated my version, I had been using an old version. It works great now.
On Feb 14, 2016 7:56 PM, "Garry Hicks" [email protected] wrote:

Did you end up having to use an alternative db?
On Feb 14, 2016 7:54 PM, "Oscar Morrison" [email protected]
wrote:

I got it working with local DB. Won't work with my own mongo lab for some
reason


Reply to this email directly or view it on GitHub
#5 (comment).

from node-api.

ElectronHarvester avatar ElectronHarvester commented on September 17, 2024

I have a pull request pending that solves this issue.

from node-api.

chris-sev avatar chris-sev commented on September 17, 2024

Thanks for the PR @ElectronHarvester!

from node-api.

ElectronHarvester avatar ElectronHarvester commented on September 17, 2024

@sevilayha Thanks for sharing a good simple node api app!

from node-api.

pavanyogi avatar pavanyogi commented on September 17, 2024

After creating local database , it works fine ... :)
database creation in mongodb

Server\3.4\bin>mongo.exe
MongoDB shell version v3.4.2
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.2
Server has startup warnings:
2017-03-03T11:35:46.632+0530 I CONTROL [initandlisten]
2017-03-03T11:35:46.632+0530 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-03-03T11:35:46.633+0530 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2017-03-03T11:35:46.633+0530 I CONTROL [initandlisten]

show dbs
admin 0.000GB
local 0.000GB
use mydb
switched to db mydb
db
mydb
show dbs
admin 0.000GB
local 0.000GB
db.movie.insert({"name":"abc"})
WriteResult({ "nInserted" : 1 })
show dbs
admin 0.000GB
local 0.000GB
mydb 0.000GB


server.js part
mongoose.connect('mongodb://127.0.0.1/mydb'); // connect to our database

from node-api.

Related Issues (8)

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.