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.
1.4 KiB
1.4 KiB
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