Nauka was an attempt at creating a nostr relay-client monorepo. The code is terrible and you are better off using something like nostr-rs-relay (written in Rust), or the nostr-ts-relay (written in TypeScript). I made a bunch of wrong decisions while creating it and ended up overengineering it, so the repo has been archived.
The name nauka is being used on my new project, a nostr client for blogging.
If you want to try running this relay, you can go through the following instructions:
- NodeJs (v16.14.2)
- PostgreSQL (14.2)
Running it with olders versions of node (and npm) and postgres might cause some issues.
$ npm install
Create an .env file in the root of this project directory and include the postgres connection params. Examples:
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=username
DB_PASSWORD=password
DB_NAME=nauka
npx typeorm migration:run
# development
$ npm run start
# dev with watch mode
$ npm run start:dev
# debug
$ npm run start:debug
# production mode
$ npm run start:prod
Nauka is MIT licensed.