• Stars
    star
    2,270
  • Rank 20,299 (Top 0.4 %)
  • Language
    HTML
  • License
    MIT License
  • Created about 7 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This project is waiting for your contribution. If you have never contributed code on GitHub before, this is the project to get you started.

Contribute To This Project

image info

Logo Created with πŸ’– By CandidDeer

Tweet

Discord PRs Welcome Open Source Love


Announcement:

Would you like to become a maintainer on this project and help keeping it going? If you are interested, read the maintainer's guide and send me a DM on Twitter.


Quick access index

Overview

Steps


Introduction

This is a tutorial to help first-time contributors to participate in a simple and easy project.

Objectives

  • Make a contribution to an open source project.
  • Get more comfortable in using GitHub.

Who is this for?

  • This is for absolute beginners. If you know how to write and edit an anchor tag <a href="" target=""></a> then you should be able to do it.
  • It is also for those with a little more experience but who want to make their first open source contribution, or get more contributions for more experience and confidence.

Why do I need to do this?

Any web developer, aspiring or experienced needs to use Git version control, and GitHub is the most popular Git hosting service used by everyone. It is also the heart of the Open Source community. Getting comfortable using GitHub is an essential skill. Making a contribution to a project boosts your confidence and gives you something to show on your GitHub profile.

If you are a new developer and you are wondering if you need to learn Git and GitHub then here is the answer: You Should've Learned Git Yesterday.

What am I going to contribute?

Contributor Card

You are going to contribute a card just like this one to this project's web page. It will include your name, your Twitter handle, a short description, and 3 links to useful resources for web developers that you recommend.

You will make a copy of the card template inside the HTML file and customize it with your own information.


Translations

This tutorial is also available in other languages

Arabic Bangla English French German
Hindi Italian Japanese Korean Polish
Portuguese Russian Serbian Spanish Turkish

Translations for projects documentations are welcome. Read Translation Guide to contribute.


Setup! :)

Note: This Tutorial is based on GitHub PC. If you're comfortable with the terminal go to this tutorial (Click Here)

First let's get setup to do the work

  1. Login to your GitHub account. If you don't yet have an account then join GitHub. I recommend that you do the GitHub Hello World tutorial before you continue.
  2. Download GitHub Desktop app.
    • Alternatively if you are comfortable using Git on the command line you can do so Here is the link to the CLI tutorial.
    • If you use VS Code it comes with integrated Git and allows you to do what we need straight from the editor.
    • However the simplest and easiest way to follow this tutorial is using GitHub Desktop.

Now that you are all setup let's get on with the business of contributing to the project.

↑ Go to top ↑


Contribute

Become an open source contributor in 10 easy steps.

Estimated time: Less than 30 minutes.

Step 1: Fork this repository

  • The objective here is to make a copy of this project and place it in your account.
  • A repository (repo) is how a project is called on GitHub and a fork is a copy of it.
  • Make sure you are on the main page of this repo.
Fork
Click on the Fork button
  • You now have a complete copy of the project in your own account.

↑ Go to top ↑


Step 2: Clone the repository

  • Now we want to make a local copy of the project. That is a copy saved on your own machine.
  • Open the GitHub desktop app. In the app:
Clone
Click on File then Clone repository
  • You will see a list of your projects and forks on GitHub.
  • Select <your-github-username>/Contribute-To-This-Project.
  • Click Clone
Clone project
β†ͺ️ A forked project will have the fork symbol on the left. Your fork will have your own GitHub user your fork
  • This will take a moment as the project is copied to your hard disk. I recommend that you keep the default path which is usually ..\Documents\GitHub.
  • Now you have a local copy of the project.

↑ Go to top ↑


Step 3: Create a new branch

  • Once the repo has been cloned and you have it open in GitHub desktop it is time to create a new branch.
  • A branch is a way to keep your changes separate from the main part of the project called Master. For example if things go wrong and you are not happy with your changes you can simply delete the branch and the main project won't be affected.
β†ͺ️ click on Current branch, Then click on New Create branch
β†ͺ️ Give your branch a name, then click on Create branch Name branch
β†ͺ️ Publish your new branch to GitHub Name branch
  • You can name it whatever you want, but since this is a branch to add a card with your name to the project, calling it your-name-card is good practice because it keeps the intention of this branch clear.
  • Now you have created a new branch separate from the master.
  • For the next steps make sure you are working in this branch. You will see the name of the branch you are on at the top center of the GitHub desktop app where it says Current branch.

Do NOT work on the master branch

↑ Go to top ↑


Step 4: Open the index.html file

  • Now we need to open the file we are going to edit with your favourite code editor.
  • Find the project folder on your computer. If you have kept the default this should be something like your-computer > Documents > GitHub > Contribute-To-This-Project
  • The index.html file is directly in the Contribute-To-This-Project folder.
  • Open your code editor (Sublime, VS Code, Atom..etc) and use the Open file command and locate the index.html file in the main directory of the project
Open index file
β†ͺ️ Alternatively you can locate the file on your hard drive, right click, and open with your editor
  • Now you have the file you are going to edit open in your editor and you are ready to start making changes to it.

↑ Go to top ↑


Step 5: Copy the card template

  • We will make a copy of the card template to start working on it
  • At the top of the html file, under the <head> and <header> sections you will find the section labelled == TEMPLATE ==
  • Copy everything within the red square in the image, from the Contributor card START comment to the Contributor card END comment
Copy card template
  • Paste the whole thing directly below the comment indicating it
  • Make sure there is a single line of space between your card start and the last card end. It's good practice to keep our code as clear as possible
  • Never use a linters or style formatters. The project has Prettier setup
Paste card template
  • This now is your card for you to customize and edit.

↑ Go to top ↑


Step 6: Apply your changes

  • We'll now start editing html, changing the customizable fields in our card.
β†ͺ️ Replace 'Name' with your name Change name
  • Note: Don't change class="name"
β†ͺ️ Insert the URL of your Twitter account href="Insert URL here", Type your handle in the text field Change contact
  • If you prefer to use a contact other than Twitter you will need to replace the twitter icon <i class="fa fa-twitter"></i> by going to Font Awesome Icons searching for the right icon and replacing only the fa-twitter part with the new icon like fa-facebook for example. Then follow the same steps above.
Change about
β†ͺ️ Tell us something about you. Keep it short and sweet. Think about it more like a tweet than a blog post
Change resources
β†ͺ️ Share with the community 3 links to resources that are useful for web development. This can be anything, a video, a talk, a podcast, an article, a reference, or a tool. If you are a beginner don't be intimidated by this, share whatever you know even if you think it's basic. You'll be surprised how many people will benefit.
  • Link: Insert the link href="here" replacing the #. Please refrain from using URL shorteners or URLs that are not from the site you are posting!
  • Title: Write a brief description title="here".
  • Name: Write the resource's name in the text field >here</a>.
  • Make sure you have saved all your changes.
  • Test your changes. THIS IS IMPORTANT! Open the html file in your browser (by double clicking on it for example) and see what your card will look like on the site. See that the entire page still looks the same and nothing is broken. Click your links and make sure they are working. Open the console (Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac)) and check that there are no error messages.
  • Great, you have finished editing your code! The next steps will send your changes to GitHub and then submit them to be merged with the main project.

↑ Go to top ↑


Step 7: Commit your changes

  • Go back to the GitHub desktop app.
  • Your changes will have been added automatically to the staging area.
  • This means that Git has recorded all the saved changes.
  • You can see this reflected in the app. Everything you have added to the file will be in green, and deletions will show as red.
Commit changes
β†ͺ️ The next step is called Commit. This roughly means confirm the changes
Commit changes
β†ͺ️ This is what your GitHub desktop header should look like. Notice the fork symbol next to the project name in Current repository, Your Current branch will have the name you gave it in step 3
Write commit message and commit
β†ͺ️ To Commit you must fill in the Summary field. This is the commit message explaining what you have changed. In this case "Add my card information" would be a reasonable message. Optionally you can add a more detailed Description. Click the Commit button. Your button will say something like Commit to "your-branch-name"

↑ Go to top ↑


Step 8: Push your changes to GitHub

  • Your changes are now saved or committed. But they are saved only locally, that is on your computer.
  • Synchronizing local changes with your repository on GitHub is called a Push. You are "pushing" the changes from your local repository to the remote repository on GitHub.
β†ͺ️ Click the Push button Push to GitHub
  • After a few seconds the operation is complete and now you have exactly the same copy of this branch on your machine as well as on GitHub.

↑ Go to top ↑


Step 9: Submit a PR(Pull Request)

  • This is the moment you have been waiting for; submitting a Pull Request (PR).
  • So far all the work you have done has been on the fork of the project, which as you remember resides on your own account of GitHub.
  • Now it's time to send your changes to the main project to be merged with it.
  • This is called a Pull Request because you are asking the original project maintainer to "pull" your changes into their project.
  • Go to the main page of your fork on GitHub (it will have the fork icon and your own user name at the top).
  • Towards the top of the repo you will see a highlighted pull request message with a green button.
Submit a Pull Request
β†ͺ️ Click on the Compare and pull request
Open a Pull Request
β†ͺ️ This is what the Open a pull request page looks like.
  • REMEMBER you are trying to merge your branch with the original project not with the Master branch on your fork.
  • The image below gives you an idea of how the header of your pull request should look like.
  • On the left is the original project, followed by the master branch. On the right is your fork and the branch you created.
Submit a Pull Request
β†ͺ️ Create a pull request: Write a title, Add optional information in the description and Click on Create pull request
  • Don't be fazed by all the options. You only need to do these three steps for now.
  • Leave the option Allow edits from maintainers ticked.
  • Now, a Pull Request will be sent to the project maintainer. As soon as it is reviewed and accepted your changes will appear on the project web page.

↑ Go to top ↑


Step 10: Celebrate

That's it. You have done it! You have now contributed to open source on GitHub.

You have added code to a live web page: https://syknapse.github.io/Contribute-To-This-Project

Your changes won't be visible immediately; first they have to be reviewed, accepted, and merged by the project maintainer. Once they are merged your card should be visible and live on the page.

It is very normal for a reviewer to ask for changes on a PR. Think of it as good practice if it happens to you. Keep an eye for comments and requested changes. Once you make the requested changes (back in your branch) all you have to do is to commit and push your changes. The PR will automatically update with the new changes.

I promise I will try to review and merge as soon as possible but I do this in my spare time, so a few days delay is inevitable.

↑ Go to top ↑


Next Steps

  • Come back in a while to check for your merged Pull Request.
  • You should receive an email from GitHub when your changes have been approved, or if additional changes are requested. And when the PR is finally merged with the master and your card has been added.
  • You can also learn how to contribute from this free series: How to Contribute to an Open Source Project on GitHub
  • If you found this project useful please give it a ⭐ star ⭐ at the top of the page and Tweet about it to help spread the word Tweet
  • You can follow me and get in touch on Twitter or using any of these other options
  • This is an open source project so apart from contributing your card you are welcome to help fix bugs, improvements, or new features. Open an issue or send a new pull request
  • To help improve our community take a look at the GitHub Discussions tab located next to Pull Requests. This area is a place to introduce yourself, go into deeper discussions on Open Source, and communicate with the Project Maintainers. Will you help us build out this feature and enhance our community?
  • Thanks for contributing to this project. Now you can go ahead and try contributing to other projects; look for the Good First Issue label for beginner-friendly contribution options.
  • I'm also looking for collaborators to give me a hand in reviewing and merging PRs. If you would like to get more advanced Git practice please send me a DM on Twitter and read the maintainer's guide.

↑ Go to top ↑


Acknowledgements

This project is heavily influenced by Roshan Jossey's great first-contributions project with its excellent tutorial.

It is also particularly inspired by the great community around #GoogleUdacityScholars The Google Challenge Scholarship: Front-End Web Dev, class of 2017 Europe.

Top 100 Contributors

GitHub Contributors Image

Back to the top ↑

More Repositories

1

My-Learning-Tracker-first-ten-months

A copy of my learning tracker frozen in time at the 10 month mark. It shows my learning process from the beginning of my front end journey, up to the moment I got my first job. Full tracker is at: https://github.com/Syknapse/My-Learning-Tracker
HTML
410
star
2

My-Learning-Tracker

Keeping track of my web development skills and learning in one place along with resources, highlights, interests, and everything to do with my learning.
HTML
373
star
3

Tychos-Supernova

A tribute page for the supernova that changed the world and the curiosity to understand it
CSS
16
star
4

Pixel-art-maker

Syk's Pixel Art Maker. Draw something with this simple, intuitive, and fun app. The final project on Udacity Google Challenge Scholarship program.
JavaScript
16
star
5

Syk-Houdeib

My full front-end portfolio; web development skills, examples of my projects, contact links, and a bit about me.
JavaScript
16
star
6

GitHub-User-Search-app

An app to quickly search for GitHub users
CSS
13
star
7

Patatap-Clone

A sound and animation on keypress project using paper.js and howler.js
JavaScript
10
star
8

RGB-Color-Changing-Game

Color Changing game
JavaScript
8
star
9

HTML-custom-video-player

An HTML5 video player with JS custom controls. Part of Wes Bos #JavaScript30 projects
CSS
7
star
10

Drum-Kit

A JS drum kit #javaScript30
HTML
6
star
11

NASA-Media-Search-App

JavaScript
6
star
12

Clock

CSS and JS clock
CSS
6
star
13

myreads_react_fend

My books, classified into shelves. A Udacity Front-end Nanodegree React project
JavaScript
4
star
14

Ajax-Type-Ahead

city/state search
CSS
4
star
15

react-hello-world-app

A hello world React app using create-react-app
JavaScript
3
star
16

map-react-fend

A map that displays various locations and offers information about them.
JavaScript
3
star
17

arcade_game_fend

A simple JS clone of the classic Frogger arcade game
JavaScript
3
star
18

tezia

JS meets minimalism. Music and colour experiments.
JavaScript
3
star
19

Dynamic-Photo-Grid

HTML, CSS and javascript and no video to create a dynamic short video-like grid with layers of changing images. CSS grid and jQuery to create the effect.
HTML
3
star
20

timeline_app

A life events timeline app with React and TypeScript
TypeScript
2
star
21

master-gatsby-wesbos-course

JavaScript
2
star
22

random-quote-machine-react-beta

Random Quote Machine. Generates random quotes. Most are meaningless!
JavaScript
2
star
23

blog-syk-houdeib

My developer blog
JavaScript
2
star
24

Google-Udacity-Nanodegree-Scholarship-Front-End-Web-Developer

Google Scholarship Phase 2: Udacity Front-End Web Developer Nanodegree. Projects, exercises and notes
HTML
2
star
25

Learning-git

courses to learn git with the command line
HTML
1
star
26

CSS-Variables

Update CSS variables with JS
HTML
1
star
27

Flex-panels

A flex panels image gallery
CSS
1
star
28

Celsius-Fahrenheit-Converter

A fully functional temperature converter
CSS
1
star
29

JavaScript-Text-Replace

A JavaScript exercise, text replace on click
JavaScript
1
star
30

reminder-app-redux-tutorial

JavaScript
1
star
31

Knots-and-Crosses-FCC

The classic school time-wating game Knots & Crosses (or Tic Tac Toe) in vanilla JavaScript
HTML
1
star
32

Javascript-practice

excercises and miniprojects to practice javascript
HTML
1
star
33

restaurant_review_fend

A Udacity Front-end Nanodegree project.
JavaScript
1
star
34

video_finder_app

JavaScript
1
star
35

Dynamic-Grid

Dynamic grid that changes content layout on 3 different device sizes.
CSS
1
star