> For the complete documentation index, see [llms.txt](https://0xgeel.gitbook.io/loopgate-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xgeel.gitbook.io/loopgate-documentation/setup/4-running.md).

# 4. Running your site locally

TL;DR: In this section, you'll learn how to run LoopGate on your local computer, and how to push changes you make to your GitHub repository.

1. Open the terminal in your code editor.
2. Type `npm install`, and hit enter.
3. Type `npm run dev`, and hit enter.

Your app should now be running locally on your computer! 🚀

You can access it by opening a browser and going to the following URL:\
<http://localhost:3000>

!['It should look something like this](https://3169558620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCi8ppuy9QqKFYgYOAw%2Fuploads%2Fgit-blob-b3d394750f5f5e5ec6b7a7c8be2114d29c566ac0%2Floopgate-is-running.png?alt=media)

### **Verify your .env :**

Now your LoopGate is running on your local machine, it's time to check the `.env` file.

* Go to the following url: <http://localhost:3000/api/env-status>.

This checks the secrets in your `.env` file: if these are misconfigured, LoopGate will not work.

***

### **Publishing your changes:**

If you've made changes to the config, you'll probably want your users to see this too.

Follow these steps to update your code in GitHub:

!['Pushing' new changes to GitHub using VS Code](https://3169558620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FizCi8ppuy9QqKFYgYOAw%2Fuploads%2Fgit-blob-2b233e95f0b4755fae43e879791cc9f7a0b897e4%2Fpush-to-git.gif?alt=media)

1. Check the files you'd like to update and 'stage' them.
2. 'Commit' them by inputting a concise message of what you updated.
3. 'Push' them to your GitHub repository by clicking 'Push'.

{% hint style="info" %}
Confused as to how GitHub works? Check out their excellent tutorial: <https://docs.github.com/en/get-started/quickstart/hello-world>
{% endhint %}
