Quickstart

Updated

Clone the repository and run docker compose up, then open localhost:3000 and press Scan a project. Tell it once which folder holds your projects, and they are listed there to scan with one click. Or run npm install -g @crowsnest/cli and crowsnest start for the terminal. You need Docker, no account and no API keys.

There are two ways to start Crowsnest, and both run the same backend in Docker. Neither needs an account or an API key.

Which way should I start?

DashboardTerminal
You getThe dashboard at http://localhost:3000, plus the backendThe crowsnest command, with the backend in Docker
You needDocker with Docker Compose, and GitNode.js 20 or newer, and Docker
Start withdocker compose upnpm install -g @crowsnest/cli, then crowsnest start

Start with the dashboard if you want to look around: it shows every call in one place. Start with the terminal if you want to scan from a shell, stop risky installs, or use the VS Code extension. Both use port 8000, so run one at a time.

How do I start the dashboard?

  1. Get the code.
    bash
    git clone https://github.com/devampatel03/Crowsnest.git
    cd Crowsnest
  2. Say which folder holds your projects. Crowsnest runs in Docker, so it can only read a folder you share with it. Create a file called .env in the Crowsnest folder with one line:
    text
    CROWSNEST_PROJECTS=C:\Users\you\code
    Use the folder that contains your projects. On macOS and Linux it looks like CROWSNEST_PROJECTS=/home/you/code. The folder is shared read only: Crowsnest never changes it.
  3. Start Crowsnest.
    bash
    docker compose up
    The first run pulls the backend image (about 430 MB) and builds the dashboard, so it takes a few minutes. There is no settings file to create: every key is optional.
  4. Open the dashboard at http://localhost:3000. The status at the top right should say Live. If it says Offline, go to Troubleshooting.
  5. Scan a project. Press Scan a project (or press s). Every project in that folder that has a lockfile is listed, two levels down. Pick one, or type its name, such as my-app. A path as it appears on your machine, such as C:\Users\you\code\my-app, works too. Calls appear under Needs your attention.
  6. Stop Crowsnest.
    bash
    docker compose down
    Your data stays in the Docker volume crowsnest-data. Add -v to delete it.

What if I want to scan a different folder later?

Change the line in .env and run docker compose up -d. It looks two levels down, so code/my-app and code/team/web are both listed. Without .env nothing is shared, and the scan dialog says so.

How do I start the terminal command?

bash
npm install -g @crowsnest/cli
crowsnest start
crowsnest scan .

Use -g. Without it npm leaves the command in the current folder and your shell cannot find it. The first crowsnest start downloads the backend, about 430 MB. It shares the current folder with it, read only, so run it from the folder that holds your projects, or use crowsnest start --projects <folder>. crowsnest stop stops it, and crowsnest doctor says what is wrong if something is. The CLI usage page lists every command.

crowsnest install needs Crowsnest running: it checks first, and if nothing answers it stops and tells you to run crowsnest start.

What should I see the first time?

On a fresh start Crowsnest has no calls of your own, so pages are empty until a scan runs. Do not read an empty page as a result for your own project.

What this does not do

  • It does not read folders you have not shared. Set CROWSNEST_PROJECTS first.
  • It does not need, or ask for, an account.
  • It does not start the Slack bot or VS Code extension. Those have their own pages.

Next, install the terminal command from the Installation page, then read Using the dashboard.

Nib's tip: scan one real project.