Example of a graphql server using nostr-indexer
- Install dependencies:
npm install- Setup database
DATABASE_URL=file:<FULL_PATH_TO_DB_FILE> npx prisma migrate reset --schema ./node_modules/nostr-indexer/dist/prisma/schema.prismaReplace FULL_PATH_TO_DB_FILE with where you want the database file to live, eg. /my-project/nostr.db
- Run
npm start