Comments (11)
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.
bump
from node-api.
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.
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.
I got it working with local DB. Won't work with my own mongo lab for some reason
from node-api.
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.
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.
I have a pull request pending that solves this issue.
from node-api.
Thanks for the PR @ElectronHarvester!
from node-api.
@sevilayha Thanks for sharing a good simple node api app!
from node-api.
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)
- A little question HOT 2
- MongoError: auth fails HOT 2
- Unable to post using Postman HOT 1
- saving names HOT 2
- Do you have any other examples with a better degree of completion?
- Error is throwing to Mongo DB. I am new to JS and NodeJS framework. Can you please tell me the possible solution. HOT 1
- Cannot GET /
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-api.