This is the source code repository for blog. screenshots
- Fork this repository to your own account.
- Clone the Forked repository
git clone https://github.com/your_github_username/blog.git
- After cloning, now run
cd blog
and get into your newly cloned local repository/folder. - Run
composer install
to install the dependencies as defined in the composer.json file. - Run
npm install
to install the dependencies as defined in the package.json file. - Now is the time to add the upstream remote address. This will be something useful in a team environment. Let’s say three person is working on a repository and everyone brings and pushes changes into what we call
upstream
or main repository. If you rungit remote -v
you will see that you have onlyorigin
configured and that’s looking to your fork. Now let’s addupstream
as well:git remote add upstream https://github.com/murtazasultani/blog.git
- you can create
.env
bycp .env.example .env
then add your database credential in it. - Run
php artisan key:generate
to generate a key for your app. - Run
php artisan migrate --seed
to run the database migrations. - Run
npm run watch
ornpm run dev
to compile the assets. - Run
php artisan serve
to Serve the application on the PHP development server.
You can now visit the app in your browser by visiting http://127.0.0.1:8000.
-
Before doing fetching any records from upstream or pushing, always check if you are in the right branch. You can see what branch you are in by running the following command:
git branch
-
Before doing any new work, always run
git fetch upstream
and thengit merge upstream/master
on the master branch. If you are not in the master branch, simply runget checkout master
first to make sure you are in the master branch. -
Keep every commit and its message meaningful and relevant.
-
Keep your PR titles meaningful and relevant.
-
Always include
ifix-
before your branch names. That’s our common pattern.i
there is issue and fix is the fix you are providing.