# Put your site online (no coding)

Source: https://help.ruuster.com/idx/put-your-site-online

> Step by step, with no coding, how to put your listings site online with a free GitHub account and a Vercel account, add your keys to the host's settings, deploy, and what another host needs.

Your site runs on your own computer while you build it. To let anyone open it, a **host** runs it
for you on the internet. This page walks through one host, Vercel, click by click. It takes about
20 minutes, and you do it once. After that, every change you or your AI coding tool makes goes
online by itself.

If you build with your AI coding assistant (Claude Code, Codex, Cursor or similar), it does the technical parts and tells you when a click is yours.
[START_HERE.md](https://help.ruuster.com/idx/START_HERE.md) is the file it follows.

## Why Vercel

The example site in these docs is built with Next.js, and Vercel runs Next.js with no extra setup.
It has a free plan for trying things out, and paid plans for a business site. Vercel's
[pricing page](https://vercel.com/pricing) has the current plans. Vercel bills you directly.

Another host works too. [What another host needs](https://help.ruuster.com/idx/put-your-site-online#what-another-host-needs)
lists what to look for.

## Before you start

Have these ready:

- **Your project folder** with a site that runs on your computer.
- **Your work email.** Use a company address, so the accounts stay with the business if someone
  leaves.
- **Your `.env.local` file** open in a text editor. It holds your keys. You copy each value from it
  in step 4.

## Step 1: Create a GitHub account

GitHub keeps a copy of your site's code. Vercel reads the code from there.

1. Go to [github.com](https://github.com) and click **Sign up**.
2. Enter your work email, a password and a username, such as your brokerage's name.
3. Type the code GitHub emails you.
4. Choose the free plan.

If you already have a GitHub account for the business, sign in and go to step 2.

## Step 2: Put your code on GitHub

1. At the top right of GitHub, click **+**, then **New repository**.
2. In **Repository name**, type a short name, such as `listings-site`.
3. Choose **Private**. Your code doesn't need to be public.
4. Leave every other box as it is and click **Create repository**.
5. GitHub shows a page with the new repository's address. It ends in `.git`. Copy it.
6. Give that address to your AI coding tool and ask it to push the project there. The first time,
   a GitHub window opens and asks you to sign in. Click **Authorize**.

Your keys stay on your computer. The file `.env.local` is never sent to GitHub. Ask your AI coding
tool to confirm that `.env.local` is listed in the file `.gitignore` before it pushes.

Check: reload the repository page on GitHub. You see your project's files, and `.env.local` is not
among them.

## Step 3: Create a Vercel account and import the project

1. Go to [vercel.com](https://vercel.com) and click **Sign Up**.
2. Choose the plan type that fits. A business site belongs on a paid team plan. You can start on
   the free plan while you build.
3. Click **Continue with GitHub**, then **Authorize Vercel**.
4. On your Vercel dashboard, click **Add New**, then **Project**.
5. Under **Import Git Repository**, find your repository and click **Import**. If it isn't in the
   list, click **Adjust GitHub App Permissions**, tick the repository and click **Save**.
6. Vercel shows a **Configure Project** page. Leave **Framework Preset** on **Next.js**. Don't click
   **Deploy** yet.

## Step 4: Add your keys to Vercel's settings

Your site reads its keys from **environment variables**. On your computer they live in `.env.local`.
On Vercel they live in the project's settings, where only you can see them.

1. On the **Configure Project** page, open **Environment Variables**.
2. For each line in your `.env.local` that has a value, type the name in **Key**, such as
   `IDX_SECRET_KEY`, and paste the value in **Value**. Click **Add** after each one.
3. Add at least these:

   | Name | What to paste |
   |---|---|
   | `IDX_SECRET_KEY` | Your secret key |
   | `SITE_NAME` | Your brokerage's name |
   | `SITE_ORIGIN` | Leave it out for now. You add it in step 6 |

4. Add your Google Maps and CRM values too, if you have them. The names are in
   [Keys, domains and environment names](https://help.ruuster.com/idx/keys-and-domains).

Paste each value yourself. Never paste a secret key into a chat with an AI coding tool.

A faster way: on the same page, click into the **Key** box and paste the whole content of
`.env.local`. Vercel fills in every line at once. Check the list before you go on.

## Step 5: Deploy

1. Click **Deploy**.
2. Wait a minute or two. Vercel shows the build as it runs.
3. When it finishes, Vercel shows a preview of your site and its address, such as
   `listings-site.vercel.app`. Click the preview to open it.

If the build fails, click the failed build to see the log, copy the lines in red, and give them to
your AI coding tool.

## Step 6: Tell your site and your console the new address

1. In Vercel, open your project, then **Settings**, then **Environment Variables**.
2. Add `SITE_ORIGIN` with your site's full address, such as `https://listings-site.vercel.app`, and
   click **Save**.
3. Open **Deployments**, click the three dots on the newest one, then **Redeploy**. A changed
   setting takes effect on the next deploy.
4. In your Listings API console, open **Keys and domains**. Under **Website addresses your pages run on**, click **Add a
   domain** and type the same address. The search box and the map
   work in the browser after that.

## Check that it works

Open your site's address in a browser and go to your search page. You should see listing cards, and
on each one the "Listing provided by" line. While you use sandbox keys, the listings are sample
homes in Atlanta and Dallas.

## After this

- **Every change goes online by itself.** When your AI coding tool pushes a change to GitHub, Vercel
  builds and deploys it within a few minutes.
- **Your own domain.** [Point your domain at your site](https://help.ruuster.com/idx/point-your-domain)
  puts the site on your own web address.
- **Going live.** When your live keys are ready, replace the two key values in **Settings**, then
  **Environment Variables**, and redeploy. [Going live](https://help.ruuster.com/idx/guide-go-live)
  has each step.

## If something goes wrong

| What you see | What it means | What to do |
|---|---|---|
| The build fails with a message about a missing variable | A name from `.env.local` isn't in Vercel's settings | Add it in **Settings**, then **Environment Variables**, and redeploy |
| The page loads but shows no listings | The secret key is missing or was pasted with a space | Paste `IDX_SECRET_KEY` again, with no spaces around it, and redeploy |
| The listings show but the search box does nothing | Your site's address isn't on your account's allowed domains | Do step 6, item 4 |
| Your repository isn't in Vercel's import list | Vercel can't see it yet | In step 3, click **Adjust GitHub App Permissions** and tick it |
| A change you made isn't online | The change wasn't pushed, or the build failed | Open **Deployments** in Vercel and look at the newest one |

## What another host needs

You can use another host, such as Netlify, Render, Railway or your own server. It must be able to:

- run a Node.js server, version 18.17 or later;
- run `npm run build` to build the site and `npm start` to start it;
- hold environment variables that stay private;
- serve your site over HTTPS on your own domain.

The steps are the same in any host: connect the code, add the environment variables, deploy, then
add your site's address to your account's allowed domains in your console.

A page builder such as Squarespace, Wix or a hosted WordPress plan cannot run listing pages. Keep
that site, put your listings site on a subdomain such as `homes.yourbrokerage.com`, and link to it
from your menu. [Point your domain at your site](https://help.ruuster.com/idx/point-your-domain)
shows how.
