forked from bad-example.com/at-advent
Something went wrong. Try again.
Rust 100%
Commits 7
fix CI builds
Signed-off-by: oppiliappan <me@oppi.li>
ci: add workflow to build project
Signed-off-by: oppiliappan <me@oppi.li>
add basic day-wise route-unlocking middleware
Signed-off-by: oppiliappan <me@oppi.li>
ci: add rustfmt check
Signed-off-by: oppiliappan <me@oppi.li>
init
Signed-off-by: oppiliappan <me@oppi.li>
README.md
at://advent #
An upcoming Holiday Advent Calendar for atprotocol theme challenges
Read the initial draft plans here!
Quick setup #
WIP
Project break down #
- ./web - An axum web service to host the advent website
- ./listener - A JetStream listener
- ./shared - Shared code between the 2, dbs, cache, etc
DB/Cache #
All commands assume you're at the root of the project
Setup #
- Make a copy of .env.template and name it .env
- Install postgres/redis, or can use docker compose with
docker compose -f compose.dev.yml -up - Install sqlx-cli
cargo install sqlx-cli - Run
sqlx migrate run
Adding a new migration #
- Create a new one with
sqlx migrate add {migration name} - Go to the file created in ./migrations and write the sql for the migration