Mern Notes
Mern Notes
Mern Notes
Xtra small-mobile
Small
Medium
Large
Xtra large
Xtra xtra large
Nav colors
Success,primary, secondary,light,warning,danger,dark,info
Forms
REACT
In cmd Create project: npx create-react-app appname (appname should be one word—no space)
Create components
2. Movie app
Movie entry-movie id
Search: movie id
Dlt
3. Vehicle app
12 more
1.To install the package we use npm I react-router-dom (if anything is running in the terminal the
we should terminate before installing)
Inside App.js
<BrowserRouter>
<Routes>
<Routes/>
< BrowserRouter/>
To declare an array
{“name”:”jo”,”rollno”:12,”AdmissionNo”:98765},
{“name”:”jo”,”rollno”:12,”AdmissionNo”:98765},
{“name”:”jo”,”rollno”:12,”AdmissionNo”:98765}])
New shopping-app
Add
Pr title
Img
Price
category
submit
Viewall
New-User-app
Add user
View
Table format
Npn I axios
{
data.map(
(value,index)=>{
return <tr>
<th
scope="row">{value.vistorName}</th>
<td>{value.vistorPhone}</td>
<td>{value.PurposeOfVisit}</td>
<td>{value.vistorAadhar}</td>
<td>{value.vistorPlace}</td>
</tr>
}
)
}
Method:post
Loging app
Login
App-
Company-app-backend
2 section- employees
/api/employee/add-add employee
/api/employee/view-view employee
/api/employee/search-search employee
/api/employee/delete-delete employee
Officer
/api/officers/add-add officers
/api/officer/view-add employee
/api/employee/search-add employee
/api/employee/add-add employee
Course-app-backend
Cou title
description
Venue
Duration
Date
Eg: github
Gitlab
Bitbucket
Apache subversion
mercurial.
Centralized vcs
-single central server
-latest version
-cannot work if server is down
Eg:-subversion
Team foundation server
GITHUB
Branch
Any other branch is a copy of the master branch (as it was at a point in
time)
Commits
Each commit (change) has a description explaining why a change was made
Pull request
With a pull request you are proposing that your changes should
be merged (pulled in) with the master.
Git configuration
1.add
2.commit
3.push
Versioning of GIT
Master or main are called branch and they are deliverable branch
Create a branch development from masteror main branch and from the development branch we can
create different branches according to our need like sum,multiply etc. if the code is correct then
commit and merge it to the development branch and then to the main branch.if we want to make
changes in the existing code of someone then we need to create a branch and then if it is correct
commit and merge.
fetch and rebase- git fetch // retrieving the latest changes from the remote repository without
merging
git pull –rebase // intergrating changes from one branch to another by reapplying commints on the
branch you’re rebasing onto
Git fetch command while updating your local repository with the new changes from the
remote repository. Git pull rebase command while executing the changes from the remote
branch onto your local branch.
Git command
Git config:- configure username and email address
Git pull:- to fetch and download contents from remote repository and
Advanced git
Git commit -am “ message” -can get rid of add command ‘-am’ will
2. Amend
You can rename your current commit message using the `--amend`
flag and write the new message. This will help you with accidental
messages.
$ git commit --amend -m "Love"