# Installation & Setup: Run locally

> Install, start the database, start the dev server.

Glider documentation · Getting Started · Web page: https://cgglider.com/docs/installation/run-locally/

Sections of this page: [Requirements](https://cgglider.com/docs/installation.md) · [Run locally](https://cgglider.com/docs/installation/run-locally.md) · [Environment & ports](https://cgglider.com/docs/installation/environment.md) · [Hardware & extras](https://cgglider.com/docs/installation/hardware.md)

```bash
npm install
npm run mongo:up      # docker compose up -d
npm run dev           # editor on http://localhost:4004/editor
```

| Script | What it does |
| --- | --- |
| npm run dev | Dev server with long-lived streams allowed (scripts/dev.mjs). |
| npm run build / start | Production build and serve. |
| npm test | tsx + node:test over every *.test.ts under app/ and lib/. |
| npm run lint | ESLint. |
| npm run mongo:up / mongo:down | Bring the bundled MongoDB up or down. |

![A fresh editor on first run, before any page is loaded.](https://cgglider.com/docs-shots/install-first-run.png)
