Git Flow Example with NodeJS Hello World
GitHub repo
https://github.com/jay-maas/GitFlowExample/pull/1
Hello! My name is Jay. I am going to walk through a full Git flow today while building a hello world node js server. I will be using Git Bash, Google Chrome and VS code studio on Windows 10
I will start with navigating to the folder I would like to place my repo into locally with git bash.
cd stands for change directory
ls stands for list
I am going to choose
cd documents/practice
Now i will use the command
git clone ***insert url here from github***
I need the url of my github repo. I will click the clone or download button and use the clipboard icon to copy the link.
I will paste this into the terminal
Now I have the files locally, I will open the containing folder with VS Code.
I want to create my own branch to work on, as is best practice, not to push code on to the master branch.
Using
cd GitFlowExample
git checkout -b origin jay-maas
i checkout of master and into my own branch
I am going to now create a new file
touch app.js
I want to push this file to gitHub.
I need to check if my local equals my remote repo.
Using
git status
I will know if I need to commit and push
It shows that app.js needs to be staged
Using
git add .
I stage all files to be pushed
I will check again with
git status
to make sure we got the green light
I will now add a commit message
git commit -m 'Project Initialized Created new file app.js'
and then
git push origin jay-maas
Since there are changes between my new branch and the master branch, I can now create a pull request. I want to pull request to my own master branch. I have already added a peer to be a collaborator to my repo. I will select them as a reviewer. I will leave the PR open until the review has been completed.
Now, I will continue with creating the server.
run the server with the command
node app.js
open in browser a tab and put the url of
localhost:3000
git status
git add .
git commit -m 'Added necessary code to render Hello World from the app.js file in the browser at the url of localhost:3000'
git push origin jay-maas
Now I will to collaborate further with my peer.
Thank you for watching my video. Please leave a comment and like if you enjoyed.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Git Flow Example with NodeJS Hello World», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.