GitHub
GitPod
At 4Geeks we understand that starting a project is one of the hardest things to do. There are many ways to start coding a new project, so many that it is tough to know the best or the "recommended way".
After a lot of hard work, we came up with the following alternatives; please read carefully and choose the best that fits your needs:
The most critical step is recognizing which repository you want to open; there are two options:
Ensure you understand the URL of the repository you need to open.
Once you know precisely the repository you need to open, navigate to that repository, and keep in mind the process will be a little different if the repository is a template. If your repository is not a template, move to step 3
.
Some repositories are meant to be re-used every time you start a new project, at 4Geeks we have created several templates for HTML/CSS, React, Python, etc. Here is the full list.
You can tell if the repository is a template because it contains a Use this template
button.
If the repository is a template, you will start by creating a new repository based on the template. Click on the button that says Use this template
; a dropdown menu will be displayed. You have to click the option that says `Create a new repository:
You'll be redirected to a new view where you'll create your new repository. Click the Select an owner
button; a dropdown menu will be displayed.
โ ๏ธ Important: If you are currently part of the 4Geeks Academy coding bootcamp, make sure to select it on this dropdown, otherwise you will not get free hours of Github Codespaces.
You have to give your repository a name: We strongly recommend prepending your Github username followed by the name of the project you'll be working on. For example githubusername-my-project-name
:
Make sure you select the public
option, and after that click the Create repository from template
button:
You'll be redirected to the repository URL. The first thing you need to do is to star the repository, so you'll be able to find it easier. You have to click the Star
button:
๐ Note: You can see your starred repositories by clicking on your profile button (where your picture or avatar is): a dropdown menu will be displayed, and you have to click the
Your stars
option.
There are 3 ways you can open a repository, please choose only one:
Currently, this is the recommended way to open the repo.
Then, you'll click the <> Code
green button, and after that, the Create codespace on main
button:
A new tab will be opened with your Codespace ready for work! Start coding!
๐ป Note: here are more details about opening repositories with Codespaces.
Please download the Gitpod extension for Chrome or for Firefox.
๐ Note: here are more details about opening repositories with Gitpod.
We don't recommend working on your local computer, but here are the instructions if you insist.
You can find very detailed explanations in this article, but here is a summary:
cd
command.1$ git clone https://github.com/4GeeksAcademy/html-hello
$ code .
on your terminal (notice the dot .
at the end). If that command does not work, you can still open VSCode, click on "open folder" and find your project folder.