-
JSON
-
Intro - Array accessing using indices similarly dict using keys
-
Object
-
Array
-
Complex
-
Make your own JSON for your name,email,phone numbers
-
Mongo:
-
Description (Uses JSON)
-
Mongo Server
-
Mongo shell 1. show dbs 2. use < dbname >
- db.getCollection('').method() 3. db.users.insertOne({}) 4. db.users.insertMany([{},{}]) 4. db.users.findOne({}) 5. db.users.find 5. db.users.find().limit(5) //Top 5 6. db.users.updateOne({},{$set:{}}) 7. db.users.updateMany({},{$set:{}}) (DB,Collection:(Users,Questions) creation, Documents' CRUD)
-
Node:
-
Intro asynchronous!!!
-
myFirst.js 1. Hello install nodemon make sure its globally installed 2. for loop \n and
difference -
myFirstModule.js exports 1. date 2. require in myfirst.js difference in './asaskdbja' and 'asdsadsa'
-
Node routes not important 1. req.url node routes
-
Node mailer not important 1. nodemail.js
-
Express 1. Installation 2. myFirstExpress.js 3. Get request 4. POST request
-
Connection with mongo 1. install mongoose 2. Import mongoose in myFirstExpress.js 3. Connect to db at localhost 4. Insert questions into db
-
Project 1. WORK ON THE FUCKING PROJECT