Skip to main content

Middleman Server Template

The "task-middle-server-template" repository is a template designed to help developers create middle-layer servers that bridge Koii Task. It provides a foundational setup with essential components such as task queue management, server setup, and interaction with IPFS for fetching task data. The repository uses Node.js and MongoDB, leveraging Express.js for the server and async-await-queue for task handling. This template simplifies the creation of a task processing server by providing pre-built tools and structures.

For more details, visit the repository page here

Quick Start

To get started with the template, follow these steps:

  1. Clone the repository:
git clone https://github.com/koii-network/task-middle-server-template.git
  1. Install the dependencies:
npm install
  1. Set up the environment variables:
cp .env.example .env

Edit TASK_ID to the task ID you want to process. You can also configure the MongoDB connection string.

  1. Start the server:
npm start

To learn more about the template and its features, check next sections.