Hey ,I am full stack developer and pursuing Btech from Dronacharya Collage of Engineering and have Positive Attitude and Good Communication Skill
and Good Time and Task Management and have a quick learning ability
Prashant Srivastava
20 march 2001
Kapashera, New Delhi
prashantsrivastava5116@gmail.com
+91 7827677523
Web Design(React Js)
BlockChain
Rative App
C++
My Resume
EXPERIENCE
EDUCATION
present
web developer
Full Knowledge of Regarding Web
......
....student
Have bit experience
2020-2024
Dronacharya Collage of Engineering University
allocated in gurgaon.
2018 - 20020
Rao Ganga Ram Public School
locatedin kapashera
2016-2018
High School from Rao Ganga Ram Public School
locatedin kapashera
2
Happy Clients
10
Complete Projects
2000
Lines of Codes
0
Awards Received
..Skill..
Ethereum
Dapps (Decentralized app)/ using Smart Contract
Web3js
web3.js is a collection of libraries that allow you to interact with a local or remote ethereum node using HTTP, IPC or WebSocket.
Node Js
Node.js is an open source server environment; Node.js can generate dynamic page content; Node.js can create, open, read, write, delete, and ...
Rative JS
React. js is an open-source JavaScript library that is used for building user interfaces specifically for single-page applications.
HTML/CSS
Hypertext Markup Language, a standardized system for tagging text files to achieve font, colour, graphic, and hyperlink effects on World Wide Web pages.
JavaScript
JavaScript is a scripting language that enables you to create dynamically updating content, control multimedia etc...
PYHTON
Jimmy Dean
I can’t change the direction of the wind, but I can adjust my sails to always reach my destination
William James
It is our attitude at the beginning of a difficult task which, more than anything else, will affect its successful outcome
Martin Luther King Jr
If I cannot do great things, I can do small things in a great way.
MongoDB is an open source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas
Aggregation Pipeline
An aggregation pipeline consists of one or more stages that process documents:
Each stage performs an operation on the input documents. For example, a stage can filter documents, group documents, and calculate values.
The output from a stage are passed to the next stage.
An aggregation pipeline can return results for groups of documents. For example, return the total, average, maximum, and minimum values
In simple words 'Every thing is javascript happen inside an Execution Context and it is lightweight,interpreted(means "it will execute the code line wise ") programming language.'
javascript is client slide scripted language
javascript is most popular language now day,
Why Study Javascript?
Javascript is used in web-development and extend to mobile app development ,desktop app development and game development
Every thing in javascript comes installed on every modern web browser('like :google chrome,safari) and not need any environment setup
Let the terms of javascript :
Execution Context(the environment in which our code is executed and is evaluted)
Execution Stack
Execution Context
Javascript engine creates the global execution context before it start to execute any code
NOTE: Global Execution context lies inside the Execution Context
Execution context has three properties
variable object
scope chain
'this' variable
Variable and function that is not inside any function .A new Execution Context get created every time
a function is executed
The global execution context just like any other execution context ,except that it get created by default
It is associated with global object Which means a window object
Example : this===window,name == window.name
Execution Stack
Execution stack also known as 'calling stack' is a stack follow 'LIFO'(last in first out) Structure
which is used to store all the execution context created during the code execution
Every code that is present inside the blue container which will contained in execution context and when function call it will gonna store in Execution stack (like you call function a() and it is stored in stack (orange in color in image) same like this all function call line wise and stored in stack and when calling competed that function will remove from calling stack
Variable object
For each function (function declaration ) a property is created in the varible object .which is pointing to that function
for each varible (variable declaration ) a property is created in the variable object which is the set to undefined
Hoisting is a javascript mechanism where variable and function declarations are moved to the top of
their scope before the code execution
Function Hoisting
Before the execution phase every variable and funtion moved to top of their global scope and set variable value to 'undefined ' and in case of function it store the all function definition
CODE:
console.log(fun())
console.log(x)
var x=10
function fun(){
console.log('printing function')
}
OUT-PUT on Browser:
undefined
f fun(){`
console.log('printing function')
}
Lexical Environment :
it's the internal js engine construct that holds identifier-variable mapping. (here identifier refers to the name of variables/functions, and variable is the reference to actual object [including function type object] or primitive value).A lexical environment also holds a reference to a parent lexical environment.
In simple words (local memory + parent lexical Environment ) this both shows the lexical environment of current execution context
And every lexical environment tracks its parent lexical environment (that of parent execution context)
As a result, every function has a chain of lexical environments attached to it.
Scope : it's the language agnostic concept, to refer to the visibility of variables or functions to the executing code.
In js a variable or function is visible to the executing code, if it is there in the current lexical environment or in the lexical-environment-chain of the enclosing function. In case of global code, the chain does not exist.
Regarding Let and Const
'Let' and 'Const' declarations are both block-scoped, which means they are only accessible within the {} surrounding them "var', on the other hand, doesn't have this restriction.
TEMPORAL DEAD ZONE
This term is describing the state where variables are un-reachable. They are in scope, but they aren't declared.
Temporal dead zone : time between the initiation of variable and assigning value to variable is known as temporal dead zone
CODE:
1:{ console.log(money)// This is the temporal dead zone for the money variable
let money=25 ; // now temporal dead zone no more
console.log(money)
}
2:{ console.log(a)
let a=12; /// we can't use same name of variable name with once it is defined to 'let '
var a=12;
}
Here you can find Reference error in both the cases
Crystal-Clear-Javascript Firecoder
January 23, 2022
Use the pwd command to find out the path of the current working directory (folder) you’re in. The command will return an absolute (full) path, which is basically a path of all the directories that starts with a forward slash (/). An example of an absolute path is /home/username.
cd command
Let’s say you’re in /home/username/Documents and you want to go to Photos, a subdirectory of Documents. To do so, simply type the following command: cd Photos
There are some shortcuts to help you navigate quickly:
cd .. (with two dots) to move one directory up cd to go straight to
the home folder cd- (with a hyphen) to move to your previous directory
ls command
If you want to see the content of other directories, type ls and then the directory’s path. For example, enter ls /home/username/Documents to view the content of Documents
There are variations you can use with the ls command:
ls -R will list all the files in the sub-directories as well
ls -a will show the hidden files
ls -al will list the files and directories with detailed information like the permissions, size, owner, etc.
cat command
It is used to list the contents of a file on the standard output (sdout);
cat filename creates a new file
cat filename1 filename2 filename3 joins two files (1 and 2) and stores the output of them in a new file (3)
to convert a file to upper or lower case use, cat filename | tr a-z A-Z output.txt
mv command
The arguments in mv are similar to the cp command. You need to type mv, the file’s name, and the destination’s directory. For example: mv file.txt /home/username/Documents.
To rename files, the Linux command is mv oldname.ext newname.ext
mkdir command
Use mkdir command to make a new directory — if you type mkdir Music it will create a directory called Music.
To generate a new directory inside another directory, use this Linux basic command mkdir Music/Newfile use the p (parents) option to create a directory in between two existing directories. For example, mkdir -p Music/2020/Newfile will create the new “2020” file.
rmdir command
you need to delete a directory, use the rmdir command. However, rmdir only allows you to delete empty directories
rm command
The rm command is used to delete directories and the contents within them. If you only want to delete the directory — as an alternative to rmdir — use rm -r.
touch command
The touch command allows you to create a blank new file through the Linux command line. As an example, enter touch /home/username/Documents/Web.html to create an HTML file entitled Web under the Documents directory.
find command
using find also searches for files and directorie
sudo command
“SuperUser Do”, this command enables you to perform tasks that require administrative or root permissions. However, it is not advisable to use this command for daily use because it might be easy for an error to occur if you did something wrong.
df command
Use df command to get a report on the system’s disk space usage, shown in percentage and KBs. If you want to see the report in megabytes, type df -m.
du command
If you want to check how much space a file or a directory takes, the du (Disk Usage) command is the answer
If you want to see it in bytes, kilobytes, and megabytes, add the -h argument to the command line
head command
The head command is used to view the first lines of any text file.
By default, it will show the first ten lines, but you can change this number to your liking. For example, if you only want to show the first five lines, type head -n 5 filename.ext.
tail command
This one has a similar function to the head command, but instead of showing the first lines, the tail command will display the last ten lines of a text file. For example, tail -n filename.ext.
diff command
the diff command compares the contents of two files line by line. After analyzing the files, it will output the lines that do not match.
tar command
The tar command is the most used command to archive multiple files into a tarball — a common Linux file format that is similar to zip format, with compression being optional.
chmod command
chmod is another Linux command, used to change the read, write, and execute permissions of files and directories.
chown command
The chown command enables you to change or transfer the ownership of a file to the specified username. For instance, chown linuxuser2 file.ext will make linuxuser2 as the owner of the file.ext.
ping command
the ping command to check your connectivity status to a server. For example, by simply entering ping google.com, the command will check whether you’re able to connect to Google and also measure the response time.
wget command
The Linux command line is super useful — you can even download files from the internet with the help of the wget command. To do so, simply type wget followed by the download link
history command
When you’ve been using Linux for a certain period of time, you’ll quickly notice that you can run hundreds of commands every day. As such, running history command is particularly useful if you want to review the commands you’ve entered before.
echo command
This command is used to move some data into a file. For example, if you want to add the text, “Hello, my name is John” into a file called name.txt, you would type echo Hello, my name is John name.txt
cp command
the cp command to copy files from the current directory to a different directory.
the command cp scenery.jpg /home/username/Pictures would create a copy of scenery.jpg (from your current directory) into the Pictures directory
I have explained every and each steps to install React in your local pc ,It will help you to resolve your problem that you are tackling/facing during its installation.
LETS KNOW FIRST WHAT IS REACT JS
React JS is a open source to Javascript Library is used to create dynamic and interactive user interface for mobile and web application.
In short points
highly flexible
scalable
fast front-end for web & mobile applications
KNOWLEDGE REQUIRED FOR REACT JS:
HTM
CSS
JAVASCRIPT
NODE AND NPM
"Very crucial information ,Here we are using virtual DOM instead of Real DOM"
"In React JS every application UI is broken into Component ,that makes easy to handle"
Formate of file Naming =>filename with capital letter then dot jsx ( first.jsx )
JSX( Javascript Syntax Extension)
DATA FLOW UNIDIRECTION
React JS follows one-way data binding or unidirectional data flow that gives better control throughout the application.
# React JS Installation part #
Carefully trash every step of installation of react js in your local pc
Install Visual Studio Code
Download and install Visual Studio Code from the following
URL =>https://code.visualstudio.com/download
step 1: open browser and write node install
download from official node js website
website link : https://nodejs.org
Once Completed then check the version
Install Create-React-App Tool
step 2: Run the given below command in your laptop powershell
=> npm install -g create-react-app
Creating a new react project
step 3: after the completion of step 2, Create project and application in C:\
Let's create a new Project now using the command.
=> create-react-app test-project
you folder structure will resemble with this
Running the React Application
the Project we have created and run it locally on our system using npm start. Launch the browser and visit http://localhost:3000. We can then see our first React Application running in the browser.
step4:cd test-project
npm start
React animation will appear in browser
if you has followed the steps of installation correctly ,by chance you are facing any problem then once repeat /read the steps of installation carefully.
Let's initiate the web project ,first of we are gonna to make amazing single page website,
Modules required:
npm
create-react-app
styled-components
react-router-dom
first we check npm installed perfectly
write this command on terminal :
node -v
Installation in done :
Every Thing is now done perfectly so we are gonna make navbar ,
we’ll only need to install the React Router library to help us switch views of the HOME in our app when we click on the HOME on the links.
npm install react-router-dom
First, we’ll build the navbar itself. To do that, we’ll create a file named Navbar.js in src/component
importReactfrom'react';
import { Link } from"react-router-dom";
constNavbar= () =>{
return (
<div>
<li>
<Linkto="/">Home
</Link>
</li>
<li>
<Linkto="/contact">contact
</Link>
</li>
<li>
<Linkto="/service">service
</Link>
</li>
<li>
<Linkto="/detail">Detail
</Link>
</li>
</div>
);
}
exportdefaultNavbar;
We have to import Link from the react-router-dom library we’ve already installed. <Link> comes out of the box from the React Router library to allow us to navigate to the exact route name in the to attribute. What it does is convert whatever’s inside the attribute (text, images, etc.) into a link. When you click it, you are taken to the route that’s already indicated in the toattribute.
NOW WE ARE GONNA MADE THE INDIVIDUAL " to " ATTRIBUTE LINK
now we are creating each page for each "to" attribute (for '/' ,'/Contact', '/Service' ,'/Detail').
We’ll place them insrc/pages/navbar, like so:
>>>>>>page for '/'<<<<<<<<<
importReactfrom'react';
constHome= () =>{
return (
<div>
<h3>HOME</h3>
</div>
);
}
exportdefaultHome;
>>>>>>page for '/Contact'<<<<<<<<<
importReactfrom'react';
constContact= () =>{
return (
<div>
<h3>Contact</h3>
</div>
);
}
exportdefaultContact;
>>>>>>page for '/Service'<<<<<<<<<
importReactfrom'react';
constService= () =>{
return (
<div>
<h3>Service</h3>
</div>
);
}
exportdefaultService;
>>>>>>page for '/Detail'<<<<<<<<<
importReactfrom'react';
constDetail= () =>{
return (
<div>
<h3>Detail</h3>
</div>
);
}
exportdefaultDetail;
Now, go into your App.js, and import react-router-dom into your project:
import { Route,Switch } from'react-route'
importnavbarfrom"./components/navbar"
importHomefrom"./pages/Home"
importContactfrom"./pages/Contact"
importServicefrom"./pages/Service"
importDetailfrom"./pages/Detail"
functionApp() {
return (
<Router>
<navbar/>
<Switch>
<Routepath='/'exactcomponent={Home}/>
<Routepath='/Contact'component={Contact}/>
<Routepath='/Service'component={Service}/>
<Routepath='/Detail'component={Detail}/>
</Switch>
</Router>
);
}
exportdefaultApp
Congratualations Guys You have learned How to make Navbar using Link , Router and Switch