Linkedin Course's Github Repository
Firebase: https://console.firebase.google.com/
For running mongodb locally:
mongod -dbpath <db-storage-path>
- Open a new terminal instance and create a new DB in
mongosh
use <db-name>
db.<collection-name>.insertMany(
[
{
name: 'learn-react',
upvotes: 0,
comments: [],
},
{
name: 'learn-node',
upvotes: 0,
comments: [],
},
{
name: 'mongodb',
upvotes: 0,
comments: [],
}
]
)
db.articles.find({})
.exit
-
Change server so runtime can tell server the
PORT
to listen on. -
Host MongoDB on cloud!
Add username and password in
.env
. and change connection string! -
Insert some data in MongoDB Atlas.
Click on
Connect
andConnect with shell!
Insert data from
mongosh
.