Skip to main content

Start with no tech background: what GitHub and GitLab are and how to connect your project

This page is for someone who wants to build a site or an app with the help of AI but has never used GitHub. You do not need to be a programmer; just follow the steps in order. It takes about 15 minutes.

By the end of this page:

  • you have a free GitHub account;
  • you have a repository (your project's online folder) that starts from a ready-made app;
  • the repository is connected to your Arianet project, and every change you or an AI assistant saves is published to the internet automatically.

A few words to know​

WordMeans
RepositoryAn online folder that holds all your app's files and keeps the history of every change; you can go back to an earlier version at any time.
GitHub and GitLabTwo sites that store repositories, like "Google Drive for code". Both have free accounts. This page uses GitHub as the example; GitLab works the same way.
GitThe tool behind GitHub and GitLab that records changes. You do not have to use it yourself; the AI assistant does.
CommitA "save" with a short description, e.g. "changed the button colours".
PushSending commits from a computer (or from the assistant) to GitHub.
BranchA separate copy of the project for trying out changes. The main branch is usually called main, and it is what people see.
Pull RequestA request to "add this branch's changes to the main branch". Clicking Merge moves the changes to main.
DeployBuilding the app and putting it on the internet. On Arianet every push deploys automatically.

Step 1: create a free GitHub account​

  1. Go to github.com/signup.
  2. Enter your email, a strong password and a username. The username appears in the address of your repositories.
  3. Enter the code sent to your email.
  4. If it asks how you will use GitHub, you can click Skip. The Free plan is enough.
Account security

Turn on two-factor sign-in in GitHub (Settings → Password and authentication). Your app's code lives in this account.

Step 2: create a repository from the ready-made sample​

The easiest start is Arianet's sample app: a Persian "Notes" app with user sign-in, a database, image uploads and live updates, ready to deploy. The AI assistant turns it into the app you want.

  1. Open github.com/ariaservice/arianet-baas-starter.
  2. At the top, click the green Use this template button, then Create a new repository.
  3. Give it a name (e.g. my-shop). Choose Private so only you see the code.
  4. Click Create repository.

You now have a repository of your own. The sample has a file called AGENTS.md that explains to the AI assistant how the project works on Arianet, so you do not have to explain anything.

An empty repository

If you do not want to start from the sample, click + at the top of GitHub → New repository, give it a name and tick Add a README file. Then ask the assistant to set up the project layout as described in Build with AI.

Step 3: a BaaS project in the Arianet panel​

If you do not have a project yet, open Arianet BaaS in the Arianet panel and create a Project (Projects guide). It takes a few minutes.

Step 4: connect the repository in the panel​

  1. In the panel, open the Project and click Git و Deploy (Git and Deploy) in its menu.
  2. Choose Connect repository («اتصال Repository») and then GitHub. A list of what Arianet can and cannot do is shown (Arianet never changes your code). Click Continue to GitHub.
  3. On GitHub choose Only select repositories, pick your new repository and click Install (or Authorize).
  4. You return to the panel. Pick the repository from the list.
  5. In the Settings step everything is filled in for you (for the sample: npm run build and the dist folder). Just give a Site name; your site's address becomes https://<name>.site.arianet.app.
  6. Click Connect and deploy.

The first deploy starts and the panel takes you to its live log. A few minutes later the app opens at the site address. More detail: Git and Deploy.

Step 5: write the code with an AI assistant​

Now ask an AI assistant to change the app. The assistant edits the files in this repository and pushes; every push is published automatically.

Claude Code on your phone or in the browser​

No installation on a computer:

  1. Sign in to the Claude app or claude.ai/code and connect your GitHub account (let Claude access this repository).
  2. Pick your repository.
  3. Write what you want in plain words, e.g. "Turn this notes app into a shopping list where every user has their own list".
  4. The assistant does the work and usually pushes the changes to a separate branch. Arianet builds a preview (a test copy at its own address) for that branch, so you can look before the real release.
  5. If you are happy, click Merge on the assistant's Pull Request on GitHub (or ask the assistant to). The changes go to main and the main site is updated.

Claude Code on a computer​

Install Claude Code, bring the repository to your computer (ask Claude Code: "clone this repository") and work in that folder. When it is ready, say "commit and push".

Other assistants​

ChatGPT (Codex), Cursor, GitHub Copilot and similar tools also connect to GitHub or work with git on your computer. Whichever you use, the flow is the same: the assistant changes the code and pushes, Arianet publishes. All of them read the sample's AGENTS.md.

A small change with no tools at all

To change a piece of text, open the file on GitHub, click the pencil (Edit), make the change and click Commit changes. That is a push, and it deploys.

Let the assistant see the status itself

Connect the Arianet MCP server to your assistant and it can read the deploy status and error logs itself and fix the problem. The full flow: Build with AI on Arianet.

Step 6: every push is a release​

From now on you do not need to do anything in the panel:

Pushed toWhat happens
The main branch (main)The main site and the database (tables, settings, functions) are updated.
Any other branch or a pull requestA preview is built at https://<branch>--<name>.site.arianet.app; the main site is not touched.

If a deploy fails, the previous version of the site stays in place and nothing is left half-broken.

Where to see the result​

  • Site address: https://<site name>.site.arianet.app; it is also shown on the Git و Deploy page and in Sites.
  • Status of each deploy: in the panel, Git و Deploy → the Deployments list. Open one to see its live log and the reason for a failure.
  • On GitHub: each commit has a mark next to it: a yellow dot means publishing, a green tick means published, a red cross means an error. Clicking it opens that deploy's page in the panel.

If it fails​

  1. Open that deploy's page in the panel and copy the error and the last lines of the log.
  2. Give them to the assistant and say: "The Arianet deploy failed with this error; find the cause, fix it and push again".
  3. If the assistant is connected to the Arianet MCP server, just say "check the last deploy and fix it".

Every error code and how to fix it: Deploy errors.

Safety notes​

  • Never put the Service Key, the database password or other services' keys in the repository, in a chat with the assistant or in the site's code. Enter them only in the panel (the functions' Secrets). The anon key is public and is fine inside the site.
  • A Private repository is enough; Arianet only sees the repositories you pick.
  • If you put a key in the repository by mistake, change it in the panel on the API Keys and connect page; deleting the file is not enough, because the history keeps it.

Next​