Skip to content
/ LN1 Public

DataHive LN1 facilitates the deployment and management of node-level operations for legal intelligence, data compliance, and decentralized data indexing on the DataHive network. This repository houses the foundational infrastructure for Legalese Nodes, focusing on key modules such as indexing, curation, data normalization, and node-level [...]

Notifications You must be signed in to change notification settings

datahiv3/LN1

Repository files navigation

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

  • main branch: Represents the staging environment. Commits made to this branch trigger the CI/CD pipeline for staging deployment.
  • releases/* branches: Represent production environments with each branch tied to a specific version.
  • production branch: Represents the live production environment for final deployment, merged from specific releases/* 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:

  • Refer to the .github directory for the CI/CD pipeline configurations.
  • Make sure to merge changes from the staging environment to production carefully.

Contributing

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

Communication and Coordination

  • Real-Time Collaboration: Use our Telegram group for immediate discussions, task coordination, and updates.
  • Higher-Level Documentation: All project-related documentation is available on our Google Drive. Request access through Telegram if needed.

Troubleshooting

  • Issue: Installation fails.
    • Solution: Ensure you have the correct versions of Node.js and pnpm installed.
  • Issue: Server fails to start.
    • Solution: Check the .env file for proper configuration settings.

License

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

About

DataHive LN1 facilitates the deployment and management of node-level operations for legal intelligence, data compliance, and decentralized data indexing on the DataHive network. This repository houses the foundational infrastructure for Legalese Nodes, focusing on key modules such as indexing, curation, data normalization, and node-level [...]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published