You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
buttercat1791 a775df6beb Remove `rel/` from gitignore 2 months ago
config Define DB connection strings in runtime config 2 months ago
db Get Phoenix server up and running with Nostr Ecto context 3 months ago
lib Update code to pass tests 2 months ago
priv Update code to pass tests 2 months ago
rel/overlays/bin Remove `rel/` from gitignore 2 months ago
test Update code to pass tests 2 months ago
.dockerignore Organize for release builds and dev deployment 2 months ago
.env.example Organize for release builds and dev deployment 2 months ago
.formatter.exs Get Phoenix server up and running with Nostr Ecto context 3 months ago
.gitignore Remove `rel/` from gitignore 2 months ago
AGENTS.md Add Elixir style rule with code example 2 months ago
CLAUDE.md Symlink CLAUDE.md to AGENTS.md 2 months ago
Dockerfile Update Dockerfile from LogRocket example 2 months ago
LICENSE.md Initial commit 3 months ago
README.md Initial commit 3 months ago
mix.exs Produce Swagger schema for REST API 2 months ago
mix.lock Produce Swagger schema for REST API 2 months ago
prd-1-index-relay.md Produce Swagger schema for REST API 2 months ago

README.md

GcIndexRelay

Getting Started

Start the Apache AGE Docker container:

docker build \
  -t age \
  -f ./db/Dockerfile \
  ./db
docker run \
  -d \
  -p 5455:5432 \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=postgres \
  -e POSTGRES_DB=gc_index_relay_dev \
  age

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Project Overview

Database

  • The database stores Nostr events.
  • Nostr events, once signed, are considered to be immutable.

Migrations

After modifying an Ecto schema, generate a migration with:

mix ecto.gen.migration <migration-name>

Edit the generated migration file as needed, then perform the migration with:

mix ecto.migrate

Refer to the Fly.io guide Safe Ecto Migrations for additional information.

Learn more