LightningK0ala / nostr-indexer-graphql

A graphql server for nostr-indexer

Repository from Github https://github.comLightningK0ala/nostr-indexer-graphqlRepository from Github https://github.comLightningK0ala/nostr-indexer-graphql

nostr-indexer-graphql

Example of a graphql server using nostr-indexer

Xnapper-2023-01-30-03 00 14

How to use

  1. Install dependencies:
npm install
  1. Setup database
DATABASE_URL=file:<FULL_PATH_TO_DB_FILE> npx prisma migrate reset --schema ./node_modules/nostr-indexer/dist/prisma/schema.prisma

Replace FULL_PATH_TO_DB_FILE with where you want the database file to live, eg. /my-project/nostr.db

  1. Run
npm start

About

A graphql server for nostr-indexer


Languages

Language:JavaScript 100.0%