Vibe Coding: Create Your Repository

🎬 Video

Before you write a single line of code, you need a home for it. This chapter walks you through creating a GitHub repository for the Decision Log app and cloning it to your computer.

The whole thing takes about five minutes.


What you are setting up

You will create a repository called yourname-decision-log in an AFRY GitHub organisation, with Privatevisibility. Internal means every AFRY employee with a GitHub account can browse it - good for a learning project that others can learn from too. The name prefix is there because many people on the trail will build the same app, and name collisions on GitHub are not allowed.


Step 1 - Create the repository on GitHub

  1. Open github.com and sign in with your AFRY account 1779713879002
  2. Click the + icon in the top-right corner and choose New repository
  3. Set the Owner to your division's AFRY organisation (not your personal account - personal repos cannot use GitHub Actions for deployment). If you are unsure which org to use, check the table in 16.0 - GitHub and Git
  4. Set the Repository name to exercise-decision-log-yourname, replacing yourname with your first name in lowercase - for example exercise-decision-log-erik
  5. Set Visibility to Private
  6. Leave everything else at its default 1779777778513
  7. Click Create repository

Step 2 - Copy the repository URL

Once the repository is created, you will land on its main page.

  1. Click the green Code button
  2. Make sure HTTPS is selected (not SSH)
  3. Click the copy icon next to the URL 1779777856787

Keep this URL handy for the next step.


Step 3 - Clone the repository in VS Code

Cloning downloads the repository to your computer and links it to the remote on GitHub.

  1. Open the Command Palette in VS Code with Ctrl+Shift+P
  2. Type clone and select Git: Clone

Command palette showing Git: Clone

  1. Paste the URL you copied and select Clone from URL

1779777948625

  1. A folder picker opens - choose where you want the project to live. A folder like C:\Users\YourName\git\ is a good convention as it keeps all your repositories together
  2. When cloning finishes, VS Code asks whether to open the repository - click Open

Dialog asking to open the repository

VS Code will reload with the repository folder open (it is empty).


Verify

Open a terminal in VS Code from the menu Terminal > New Terminal. In the window that appears, type:

git status

You should see:

On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean

If you see that, the repository is cloned, connected to GitHub, and ready to go.


You are ready to start 16.3 - Create a web app.