Posts

Showing posts from June 11, 2017

Node js

Image
Node.js is an open source server framework. Node.js allows you to run JavaScript on the server. A common task for a web server can be to open a file on the server and return the content to the client. Here is how PHP or ASP handles a file request: Sends the task to the computer's file system. Waits while the file system opens and reads the file. Returns the content to the client. Ready to handle the next request. Here is how Node.js handles a file request: Sends the task to the computer's file system. Ready to handle the next request. When the file system has opened and read the file, the server returns the content to the client. Node.js eliminates the waiting, and simply continues with the next request. Node.js runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient. What Can Node.js Do? Node.js can generate dynamic page content Node.js can create, open, read, write, delete, and close files on the server

MongoDB

Image
MongoDB To be able experiment with the code examples, you will need access to a MongoDb database. You can download a free MongoDb database at https://www.mongodb.com . how to install mongodb by using command line Download and install mongodb package: Now you have downloaded and installed a mongodb database driver. Node.js can use this module to manipulate MongoDB databases:     In this chapter, we will see how to create a database in MongoDB. The use Command MongoDB use DATABASE_NAME is used to create database. The command will create a new database if it doesn't exist, otherwise it will return the existing database. Syntax Basic syntax of use DATABASE statement is as follows: use DATABASE_NAME Example If you want to create a database with name <mydb>, then use DATABASE statement would be as follows: >use mydb switched to db mydb To check your currently selected database, use the command db >db mydb If you want to check

Java Script

JavaScript JavaScript is the world's most popular programming language. It's the language for HTML and the webpage, for servers, tablets, pc, laptops and more.......... javaScript is programming code that can be inserted into html  page. Eg:- 1) <html> <head> <title>Javascript</title> </head> <body> <script> document.write("My first javascript "); </script> </body> </html> Output :-  My first javascript 2)  <button type='button' onclick="document.getElementById('demo').innerHTML='hello Java script!'">Click me </button> {click button then print hello java} <button type='button' onclick="document.getElementById('demo').style.fontSize='35px'">Click me </button> {click button change fontsize} <button type='button' onclick="document.getElementById('demo').style.co

ABOUT HTML

Image
Today I study HTML. HTML  HTML : Hyper Text Markup Language. HTML language is using for describing web page. HTML uses "markup" to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as <head> , <title> , <body> , <header> , <p> , <div> , <img> , and many others.  Save the file as on HTML document using .html or .htm extension. HTML Tags <HTML>   :- Start tag </HTML>  :- Eng tag <HEAD>    :- Webpage Head </HEAD>   :-Webpage end Head <TITLE>    :- Webpage Title </TITLE>   :-Webpage end Title <BODY>    :-Webpage Body <BODY>    :-Webpage end Body    <BR>  {Line Break} <P> {Paragraph} <H1> {Heading} <FONT SIZE=1> {Font size} <B> {Bold} <I> {Italic} <U> {Under line} <SMALL> {This is smaller size than the default} &l