Tuesday, August 13, 2019

Lesson 1 - GIT - Version Control System

This is the first lesson in the study group, git is very important tool for someone who want to develop software.

Let say, you want to develop a software, but you don't do it yourself, you do it with your friends, so how you will manage your code?, share it with your friends?, and collaborate with your team?

It is hard if you don't have tools to help you to do that, and one of the tools to help you collaborate with your team to write code is Git.

Git is a distributed version control system, originally developed in 2005 by Linux Torvalds, the creator of Linux. Git helps developer tracking changes in source code, also enable developer to collaborate and working together with the team.

The Git Workflow

* git init
* git add
* git commit
* git push

Other git command:
* git status
* git remote
* git clone
* git log

When the first time you creating your project, let say you put a file in a folder, and then start writing code. To enable git to track your code, then initialise git in your project, simply type a command:

$ git init

In your project root directory, usually we called this directory as a Repository. After git init, there will be created a new directory named .git, this directory contain files used by git to track the repository.

To check the status of the git, we can issue a command:

$ git status

This command will show the current status of the git repository, file changed, untracked files, etc.

To add files to the repository simply issue a command:

$ git add <file/directory name>

or we can use:

$ git add .

To add all changed files and folders. After adding the files we can commit our change, to do so issue the following command:

$ git commit -m "commit message"

Here the commit message is to give short and meaningful explanation about what have been changed, what is the purpose of the commit.

After that, we can send it to the remote repository using push command:

$ git push

Sunday, August 11, 2019

Building Web Application Using Laravel - a Study Group

In this article series I want to talk about Laravel, actually I use this material to teach a study group to start writing code and build web application using Laravel framework.

They are all beginners, so the material will walk through very basic and step by step to build Laravel web application.

Study Plan:

1. Git
2. Github
3. XAMPP
4. Composer
5. Laravel

At the end of the lesson, students will have a running web application that has the following features:

a. show list of products
b. insert a new product
c. edit a product
d. delete a product

We use Telegram group to communicate to each other, sometimes we meet in the real live while enjoying coffee.