Something went wrong. Try again.
advent of atproto
Something went wrong. Try again.
Files
- CSS 55%
- Rust 39%
- Jinja-like 6%
- Docker <1%
README.md
# at://advent
An upcoming Holiday Advent Calendar for atprotocol theme challenges
[Read the initial draft plans here!](docs/initial_plans.md)
# Quick setup
WIP
## Project break down
- [./web](./web) - An axum web service to host the advent website
- [./listener](./listener) - A JetStream listener
- [./shared](./shared) - Shared code between the 2, dbs, cache, etc
## DB/Cache
_All commands assume you're at the root of the project_
## Setup
1. Make a copy of [.env.template](.env.template) and name it [.env](.env)
2. Install postgres/redis, or can use docker compose with `docker compose -f compose.dev.yml up`
3. Install sqlx-cli `cargo install sqlx-cli`
4. Run `sqlx migrate run`
## Adding a new migration
1. Create a new one with `sqlx migrate add {migration name}`
2. Go to the file created in [./migrations](./migrations) and write the sql for the migration