Awd Practicals
Awd Practicals
Awd Practicals
JS APPLICATION TO
DISPLAY SOME MESSAGE BY USING CLIENT
SERVER MODEL.
1.AIM:
TO CREATE NODE.JS APPLICATION TO DISPLAY SOME MESSAGE
BY USING CLIENT SERVER MODEL.
2.Methodology:
3.Process Steps/Description:
node main.js
Now server is started.
4. Sample coding:
5.Sample Input/Output:
6. Result/inference:
1.AIM:
2.Process Steps/Description:
mkdir demo
cd demo
Step 3: Now we will create app.js file in our folder using new
file.
npm init
npm i express
Step 5: Write code in app.js file which starts a server and listen
on a local port. It only responds to homepage.
3.Methodology
4.Sample coding.
5.Sample Input/Output:
6. Result/inference:
1.AIM:
2.Process Steps/Description:
OPEN MongoDB Shell , type any database name to start and use
following basic commands in it:
db
3.Display help:
help
db.help()
db.mycol.help()
show dbs
show users
show roles
3. Input/Output:
4. Result/inference:
1.AIM:
2,Process Steps/Description:
Create operation –
db.collection.insert()
Read operation –
db.collection.find()
Update operation –
db.collection.update()
Delete operation –
db.collection.remove()
3.Methodology:
Create:
db.collection.insertOne()
db.collection.insertMany()
db.collection.find()
db.collection.updateOne()
db.collection.updateMany()
db.collection.replaceOne()
db.collection.deleteOne()
db.collection.deleteMany()