24 lines
568 B
Markdown
24 lines
568 B
Markdown
# Factorio Dashboard
|
|
|
|
Next.js dashboard for the [Signal Exporter](../README.md) Factorio mod.
|
|
Ingests combinator data via a POST API and visualises it with TimescaleDB as the backing store.
|
|
|
|
## Local Development
|
|
|
|
**Prerequisites:** Docker, Node.js 24, npm
|
|
|
|
```bash
|
|
# 1. Start TimescaleDB
|
|
docker compose up -d
|
|
|
|
# 2. Install dependencies
|
|
npm install
|
|
|
|
# 3. Run migrations against the local DB
|
|
DATABASE_URL=postgresql://factorio:factorio@localhost:5432/factorio npm run migrate
|
|
|
|
# 4. Start dev server
|
|
cp .env.local.example .env.local # fill in API_TOKEN
|
|
npm run dev
|
|
```
|