Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# POSTGRES_USER=atlas
# POSTGRES_PASSWORD=atlas

# PostgreSQL connection string.
# When running the full Docker stack: set automatically by docker-compose (do not set here).
# When running the backend locally against a local or Docker Postgres:
# DATABASE_URL=postgres://atlas:atlas@localhost:5432/atlas

# Required: Your L2 RPC endpoint
RPC_URL=http://localhost:8545

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ just frontend-install
Start the backend:

```bash
just backend-server
just backend-run
```

Start frontend:
Expand Down Expand Up @@ -59,7 +59,7 @@ Copy `.env.example` to `.env` and set `RPC_URL`. Common options:
| Variable | Description | Default |
|----------|-------------|---------|
| `RPC_URL` | Ethereum JSON-RPC endpoint | Required |
| `DATABASE_URL` | PostgreSQL connection string | Set in docker-compose |
| `DATABASE_URL` | PostgreSQL connection string | `postgres://atlas:atlas@localhost:5432/atlas` (local dev) |
| `START_BLOCK` | Block to start indexing from | `0` |
| `BATCH_SIZE` | Blocks per indexing batch | `100` |
| `RPC_REQUESTS_PER_SECOND` | RPC rate limit | `100` |
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
postgres:
image: postgres:16-alpine
ports:
- "127.0.0.1:5432:5432"
environment:
POSTGRES_DB: atlas
POSTGRES_USER: ${POSTGRES_USER:-atlas}
Expand Down