this repo has no description
at fmt 31 lines 877 B view raw view rendered
1# at://advent 2 3An upcoming Holiday Advent Calendar for atprotocol theme challenges 4 5[Read the initial draft plans here!](docs/initial_plans.md) 6 7# Quick setup 8 9WIP 10 11## Project break down 12 13- [./web](./web) - An axum web service to host the advent website 14- [./listener](./listener) - A JetStream listener 15- [./shared](./shared) - Shared code between the 2, dbs, cache, etc 16 17## DB/Cache 18 19_All commands assume you're at the root of the project_ 20 21## Setup 22 231. Make a copy of [.env.template](.env.template) and name it [.env](.env) 242. Install postgres/redis, or can use docker compose with `docker compose -f compose.dev.yml up` 253. Install sqlx-cli `cargo install sqlx-cli` 264. Run `sqlx migrate run` 27 28## Adding a new migration 29 301. Create a new one with `sqlx migrate add {migration name}` 312. Go to the file created in [./migrations](./migrations) and write the sql for the migration