with nodejs and mongoDB simple blog App
I deployed to Heroku and simple you can find in the below link..
When you clone this first, then run this command npm install
to install all packages.
then you need database I used mongodb:
to use it first create Keys directory mkdir keys
. then create file named keys.js in the keys directory.
js with this command touch keys/keys.js
lastly; paste your mongodb cloud link in this file. if you haven't you can create new one here
or you can use local mongodb database, just change mongoose.connect(process.env.MONGODB_URI || keys.database,{ useNewUrlParser: true });
to mongoose.connect("mongodb://localhost/[enter your database_name here]",{ useNewUrlParser: true });