LN1

DataHive LN1

Overview

DataHive LN1 is designed to facilitate the deployment and management of legal data nodes on a decentralized network. This project serves as the foundation for integrating legal data indexing, compliance processes, and streamlined node management.

For a more detailed breakdown of the objectives, functionalities, and deployment strategies, please refer to the DataHive’s NodeOps Legalese Node document on Google Drive.

This document includes comprehensive information about the NodeOps Legalese Node’s roadmap, technical specifications, and key objectives. Team members can request access through our Telegram group if needed.

Table of Contents

  1. Overview
  2. Branches
  3. Developments
  4. Installation
  5. Start
  6. Usage
  7. Deployment
  8. Contributing
  9. Troubleshooting
  10. License

Branches

Developments

Requirements

Installation

  1. Clone the repository:
    git clone --recurse-submodules https://github.com/datahive3/LN1.git
    
  2. Navigate to the project directory:
    cd LN1
    
  3. Install dependencies:
    pnpm install
    

Start

Contracts

Building Contracts

To build the smart contracts, run:

pnpm compile

Testing Contracts

To run the tests for smart contracts:

pnpm test

Usage

UI Setup

  1. Configure Environment Variables:
    • Copy the example environment file:
      cp view/.env.example view/.env
      
    • Open the newly created .env file and fill in any necessary configuration details specific to your setup (e.g., API endpoints, authentication keys).
  2. Start the UI:
    • From the root of the project directory, you can start the UI by running:
      pnpm start:view
      
    • Alternatively, navigate to the view directory and use the following command:
      pnpm start
      
    • Expected Outcome: This will launch the front-end interface of the application, typically accessible through http://localhost:5173 or the specified port in your .env file.
  3. Verify the UI:
    • Open a web browser and navigate to the local URL to ensure the UI is running as expected.

Server Setup

  1. Configure Environment Variables for the Server:
    • Copy the example environment file for the server:
      cp services/.env.example services/.env
      
    • Update the .env file with any required environment variables specific to the server configuration (e.g., database URLs, API tokens).
  2. Start the Server:
    • From the root directory, start the server with:
      pnpm start:services
      
    • Alternatively, you can navigate directly to the services directory and start the server using:
      pnpm start
      
    • Expected Outcome: The server will start running, typically accessible through http://localhost:3030 or another specified port.
  3. Check Server Status:
    • Verify that the server is running properly by checking the server logs for any errors or issues during the startup process.
    • Use API testing tools like Postman or curl to test the server endpoints to ensure they respond correctly.

Local Node Setup

cd to contracts

pnpm node

Local Subgraph Setup

Deployment

Detailed deployment steps using GitHub Actions:

Contributing

Private repo. Contibutors include: P10, NodeOps, and DataHive.

Communication and Coordination

Troubleshooting

License

This project is licensed under the MIT License - see the LICENSE file for details.