0% found this document useful (0 votes)
9 views3 pages

notes

The document outlines a series of commands and steps for setting up a development environment on a Mac, including configuring Java, Apache Maven, Git, MySQL, Visual Studio Code, Node.js, and Angular CLI. It details the installation processes, environment variable settings, and basic Git operations for version control. Additionally, it provides instructions for creating a simple Java program and an Angular application, along with verifying installations and configurations.

Uploaded by

sachindby16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

notes

The document outlines a series of commands and steps for setting up a development environment on a Mac, including configuring Java, Apache Maven, Git, MySQL, Visual Studio Code, Node.js, and Angular CLI. It details the installation processes, environment variable settings, and basic Git operations for version control. Additionally, it provides instructions for creating a simple Java program and an Angular application, along with verifying installations and configurations.

Uploaded by

sachindby16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Admin@110096(apple account password)

command +shift +3/5-screenshoot-record


Chrome
IntelliJ
Postman
JAVA-
/usr/libexec/java_home -V
pwd-to see path
ls -al -to see all files(.zshrc is already present)
if its not present , create by using command - touch .zshrc
open .zshrc
add these 2 lines-
export JAVA_HOME=$(/usr/libexec/java_home -v 17.0.12)
export PATH=$JAVA_HOME/bin:$PATH
type
source .zshrc (to load)
echo $JAVA_HOME(TO SEE path is set or not)
java -version
created one java program -compiled and interpreted .
ls
cd Documents
mkdir MyProjects
ls
cd MyProjects
touch Hello.java
ls
javac Hello.java
java Hello

APACHE MAVEN 3.9.8 :- brew install maven


mvn -version
setup home and environment variable :-
ls -al
open .zshrc
add -export M2_HOME
=/usr/local/Cellar/maven/3.9.8/bin
-export PATH=$PATH:$M2_HOME/bin
save
and run mvn -version
/////////////////////////////////////////
/////////////////
it was not working with brew so manually
downloaded the maven from browser and set the path in .hshrc file and removed the
previously set path.

GIT- downloaded xcode tool from app store


cmd - git --version
cd /Users/admin/Documents/MyProjects
echo "# sample" >> README.md(will create a readme file )
ls -u will find readme created .
cat README.md to view the. content of readme file
git init -initialize git repository in ur project locally and added .git file
in ur directory
ls -al - to view .git file(its hidden)
git status- too see untracked file and on which u are
git add . -to add all file or do git add README.md to add any particular file
do git status again to see ,whether its added or not
git commit -m "first commit"
git branch -M main - going to switch to main branch
to know to number of branches -git branch and * shows on which u are
currently
for custom name and email- mine is - Committer: admin <admin@admins-MacBook-
Pro.local>
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
----git remote add origin (url)(
https://[email protected]/user_name/repo_name.git)---for idea**
generated token -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 from github-
settings-developer option-generate token
git remote add origin
https://[email protected]/sanjeevTh-bit/
MyProjects.git --to add remote origin
git push -u origin main - to push the code
pushed code will be visible in GitHub

MYSQL -SANJEEVth@123
mysql -u root -p
show databases;
CREATE DATABASE SACHINDB;
SHOW DATABASES;
USE SACHINDB;

VS CODE- Type code in terminal -will open vs code.

GITHUB DESKTOP

NODE :- first download the NVM ,( SO THAT I CAN EASILY SWITCH BETWEEN
DIFFERENT NODE VERSION)
to download first run this command
-curl -o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
then- source ~/.zshrc (going to refresh the .zshrc in ur
current terminal )
check nvm --version(0.40.0)
now will install node using node using NVM
nvm ls-remote(going to list the node versions supported by NVM)
nvm install v20.16.0
u can check node version -it will show -v20.16.0(node --version)
after downloading node , npm is automatically downloaded.
u can check npm version too(npm --version)-10.8.1
nvm ls -will give the list of installed node in ur local

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
node --version (to check whether its downloaded or not)
npm --version(to check whether its downloaded or not)
downloaded node.js from browser
now check node --version , will get the version(20.16.0)
npm --version ,will get the version(10.8.1)
NPM get installed into the system with installation of code.

node basically helps developers to write javascript code that can


run directly in a computer process itself instead of in a browser. node.js is a
runtime environment that allows javascript to be executed on the server side .its
built on the v8 javascript engine from chrome which compiles javascript into
efficient machine code very fast and run very quickly.
npm -to view all commands for npm

sudo npm install -g @angular/cli (to install angular cli in ur system)


ng --version (18.1.4) angular version
ng new my-app
ls(my-app is visible)
cd my-app
ng serve(to build the appplicatuon and serve it locally )

You might also like