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.
|
|
2 months ago | |
|---|---|---|
| config | 2 months ago | |
| docker | 2 months ago | |
| lib | 2 months ago | |
| priv | 2 months ago | |
| rel/overlays/bin | 2 months ago | |
| test | 2 months ago | |
| .dockerignore | 2 months ago | |
| .formatter.exs | 3 months ago | |
| .gitignore | 2 months ago | |
| AGENTS.md | 2 months ago | |
| CLAUDE.md | 2 months ago | |
| LICENSE.md | 3 months ago | |
| README.md | 3 months ago | |
| compose.yaml | 2 months ago | |
| mix.exs | 2 months ago | |
| mix.lock | 2 months ago | |
| prd-1-index-relay.md | 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 setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -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
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix