A minimalistic personal blog site, where everyone can share his personal thoughts, storeys, or diaries...
In the project directory run this command
git clone --branch dev [email protected]:ali-masaaf/my-blog.git
In the project directory:
- Run the Json-server to consume the blogs data using this command:
npx json-server --watch data/db.json --port 8080
- Run the app in the development mode:
npm start
- Open http://localhost:3000 to view it in your browser.
- Clone dev branch from the repository:
git clone --branch dev https://github.com/ali-masaaf/my-blog.git
- Check out the branch related to the issue you want to contribute on:
git checkout -b <branch name>
We use a branch naming convention, you have to name your branch respecting the syntax below:
<ref>-<name>-<issue name>
ex:1-feat-create-gitignore-file
-
Stage your work tracked files with
git add <file1> <file2> <...>
orgit add *
to add all filles in one time. -
Commit your work
git commit -m '<commit name>'
We use also a commit naming convension here is the syntax:
<type>: <description>
or you can use this form with more details:<type>(<optional scope>): <subject> <BLANK LINE> <optional body> <BLANK LINE> <optional footer (s)
Allowed Commit <types>:
Commit Type Title Description Emoji feat Features A new feature ✨ fix Bug Fixes A bug Fix 🐛 docs Documentation Documentation only changes 📚 style Styles Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) 💎 refactor Code Refactoring A code change that neither fixes a bug nor adds a feature 📦 perf Performance Improvements A code change that improves performance 🚀 test Tests Adding missing tests or correcting existing tests 🚨 build Builds Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) 🛠 ci Continuous Integrations Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) ⚙️ chore Chores Other changes that don't modify src or test files ♻️ revert Reverts Reverts a previous commit 🗑
- Push your work:
git push origin <branch name> : <branch name>
- Create a pull request from My-blog github repository.
After that, your branch will get merged to the Dev branch with all commits and it will be deleted after approving the work.