SpiderGo Docs

Quick Start

Prerequisites

1. Backend Setup

Location: ../Backend

Create your configuration file based on the existing template values in Backend/config.yaml.

Required sections:

Run the backend:

Backend
cd Backend
go mod tidy
go run Delivery/main.go

Backend default listen address from config: :8080

2. Frontend Setup

Location: ../Frontend

Set environment variable:

Frontend .env
VITE_API_BASE_URL=http://localhost:8080

Run frontend:

Frontend
cd Frontend
npm install
npm run dev

3. Docs Setup

Location: docs/spider-go

Docs
cd docs/spider-go
npm install
npm run dev

Docs default URL: http://localhost:3000/docs

4. First End-to-End Check

  1. Open frontend and create an account.
  2. Verify email if verification is enabled.
  3. Login and run a scrape job from dashboard.
  4. Confirm job appears in history.
  5. Create an API key and call a v1 endpoint.

5. Programmatic Smoke Test

Use a generated API key:

Scrape
curl -X POST http://localhost:8080/v1/scrape \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
Crawl
curl -X POST http://localhost:8080/v1/crawl \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'

Notes