Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.12 KB

README.md

File metadata and controls

70 lines (48 loc) · 1.12 KB

Node

Reference implementation of the "External Data Network" Node specification.

Setup

Main

  1. git clone this repository
  2. Run npm install in the project root
  3. Create a copy of the .env.example file and rename it to .env
  4. Update the .env file if necessary

The .edn directory

  1. Create a .edn directory in the project root
  2. Create a jobs.ts file in the .edn directory
  3. Create a registry directory in the .edn directory

The .edn directory structure should look like this:

.
+-- .edn
|  +-- registry
|  +-- jobs.ts

The jobs.ts file

Copy the following code into your jobs.ts file and update it with your JobConfigs.

import { JobConfig } from '../src/types'

const jobs: JobConfig[] = [
  {
    // Your `JobConfig` here
  }
]

export = jobs

Run npm run dev in the project root to start the server. The server will automatically reload when file changes are detected.

Useful Commands

# Setup
npm install

# Development
npm run dev

# Build
npm run build

# Test
npm run test

# Format
npm run format

# Lint
npm run lint

# Clean
npm run clean