- install node
- npm install
-
Setup follow https://docs.mongodb.com/manual/administration/install-community/
-
for macOSX https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
-
brew services start mongodb-community@4.4 // start service
-
brew services stop mongodb-community@4.4 // stop service
-
mongo // to begin using mongoDB
-
mongoimport --db simple --collection people --jsonArray users.json //Insert from terminal
-
go to mongo shell
-
use simple // create/select a db
-
db.people.findOne() // see one entry in collection people
-
db.people.remove() // to remove the collection
-
db.dropDatabase() // delete a db
-
show dbs
-
update db connect url in .env file
-
npm start
-
Signup
-
login
-
CRUD user
-
follow/unfollow
-
Posts
-
CRUD Posts
-
comments/lkes
-
home/{username}
- Node https://nodejs.org/en/
- Atlas setup https://docs.atlas.mongodb.com/tutorial/create-atlas-account/
- Compass https://www.mongodb.com/products/compass
- Postman https://www.postman.com/
https://www.mongodb.com/blog/post/password-authentication-with-mongoose-part-1