This project is a GraphQL interface for interacting with M3tering Protocol meter data. It integrates with Arweave and MongoDB to manage and query meter data efficiently.
Before setting up the project, ensure you have the following installed:
-
Clone the Repository:
git clone <repository-url> cd m3tering-arweave-gateway-interface
-
Install Dependencies: Install the required dependencies using npm:
npm install
-
Configure Environment Variables: Create a
.envfile in the root directory by copying the provided.env.examplefile:cp .env.example .env
Update the
.envfile with your Arweave Gateway URL and MongoDB URI and other variables. -
Compile the TypeScript Code: Compile the TypeScript code into JavaScript:
npm run compile
-
Run the Application: Start the application:
npm start
Alternatively, for development with hot-reloading:
npm run dev
-
Access the GraphQL Interface: Once the application is running, you can access the GraphQL interface at:
http://localhost:5000/graphql
ARWEAVE_GATEWAY_URL: The URL of the Arweave gateway to interact with.MONGODB_URI: The connection string for your MongoDB instance.GNOSIS_MAINNET_RPCETH_MAINNET_RPCPORT
This project is licensed under the ISC License.