Relay creator is a NextJS application that is part of the relaytools stack. It provides a UI and API for creating #nostr relays.
You'll need to use pnpm with this project
Installing pnpm
sudo npm install -g pnpmgit clone https://github.com/relaytools/relaycreator
cd relaycreator
pnpm installcp env.develop .envThis application requires MySQL and prisma ORM.
How migrations work with prisma
We will setup the full dev environment in order to develop migrations locally if desired.
Example: Edit the .env file to add MySQL connection string(s)
DATABASE_URL="mysql://creator:creator@127.0.0.1:3306/creator"
SHADOW_DATABASE_URL="mysql://creator:creator@127.0.0.1:3306/creatorshadow"Example: Create these databases and user on your MySQL server
create database creator;
create database creatorshadow;
GRANT ALL PRIVILEGES ON creator.* TO 'creator'@'%' IDENTIFIED BY 'creator';
GRANT ALL PRIVILEGES ON creator.* TO 'creator'@'%' IDENTIFIED BY 'creator';
FLUSH PRIVILEGES;Deploy the current migrations:
pnpm prisma:migrateRun the development server:
pnpm run devBuild and run in production mode:
pnpm run build
pnpm startOpen http://localhost:3000 with your browser to see the result.