insidert

Guide for new coders

List of things to remember while coding as a beginner

The following guide is for beginners when working with me. Use them as reference while working and also read the comments in the code blocks to understand better.

If you find something is missing or needs to be updated, open a PR on Github.

Git

# bad commit messages
git commit -m "commit 2"
git commit -m "changes"
git commit -m "new changes"
git commit -m "feature 8"

# good commit messages
git commit -m "Fix heading alignment."
git commit -m "Update user profile settings"
git commit -m "Database query for unique user search"
# command to checkout to new branch
git checkout -b new_branch_name

Laravel

Static Assets


<!-- Put file-1.png inside public > images folder and the refer in the Laravel as below -->

<img src="/images/file-1.png">

Databases

Creating a new database


# username is mysql username used to log into PhpMyAdmin. Most cases it is root.
# password is mysql user password.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database_name
DB_USERNAME=root
DB_PASSWORD=

#code