Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ set shell := ["bash", "-uc"]

# Migrate to local DB
migrate *args:
dotenvx run -- ./mvnw flyway:migrate -Dflyway.locations=filesystem:./db {{args}}
dotenvx run -- bash ./mvnw flyway:migrate -Dflyway.locations=filesystem:./db {{args}}

# Drop local DB
drop *args:
dotenvx run -- ./mvnw flyway:clean -Dflyway.locations=filesystem:./db -Dflyway.cleanDisabled=false {{args}}
dotenvx run -- bash ./mvnw flyway:clean -Dflyway.locations=filesystem:./db -Dflyway.cleanDisabled=false {{args}}

# Manually migrate STAGING DB if needed (CAREFUL!!!)
migrate-stg *args:
dotenvx run -f .env.staging -- ./mvnw flyway:migrate -Dflyway.locations=filesystem:./db/migration {{args}}
dotenvx run -f .env.staging -- bash ./mvnw flyway:migrate -Dflyway.locations=filesystem:./db/migration {{args}}

# Manually migrate PROD DB if needed (CAREFUL!!!)
migrate-prod *args:
dotenvx run -f .env.production -- ./mvnw flyway:migrate -Dflyway.locations=filesystem:./db/migration {{args}}
dotenvx run -f .env.production -- bash ./mvnw flyway:migrate -Dflyway.locations=filesystem:./db/migration {{args}}

# Manually copy production db to staging. (WILL DROP ALL STAGING DATA!!!) Check wiki for more details.
copy-stg *args:
dotenvx run -f infra/.env.production -- bash infra/copy-prod-db.sh

# Run the backend Spring server
backend-dev *args:
dotenvx run -f .env -f .env.shared -- ./mvnw -Dspring-boot.run.profiles=dev spring-boot:run {{args}}
dotenvx run -f .env -f .env.shared -- bash ./mvnw -Dspring-boot.run.profiles=dev spring-boot:run {{args}}

# Run the leetcode auth stealer service
auth-dev *args:
Expand All @@ -34,30 +34,30 @@ auth-gen *args:

# Run the backend Spring server with an exposed debugger at :5005
backend-dev-debug *args:
dotenvx run -- ./mvnw \
dotenvx run -- bash ./mvnw \
-Dspring-boot.run.profiles=dev \
-Dspring-boot.run.jvmArguments="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005" \
spring-boot:run {{args}}

# Builds and installs Spring backend
backend-install *args:
./mvnw install -DskipTests=true {{args}}
bash ./mvnw install -DskipTests=true {{args}}

# Run backend formatter (check only)
backend-spotless *args:
./mvnw spotless:check
bash ./mvnw spotless:check

# Run backend formatter (check & write)
backend-spotless-fix *args:
./mvnw spotless:apply
bash ./mvnw spotless:apply

# Run backend linter, formatter, & tests
backend-test *args:
just backend-spotless && dotenvx run -f .env -f .env.shared -- ./mvnw checkstyle:check verify -Dspring.profiles.active=ci {{args}}
just backend-spotless && dotenvx run -f .env -f .env.shared -- bash ./mvnw checkstyle:check verify -Dspring.profiles.active=ci {{args}}

# Run backend tests with a debugger
backend-testd *args:
just backend-spotless && dotenvx run -f .env -f .env.shared -- ./mvnw checkstyle:check verify -Dspring.profiles.active=ci -Dmaven.surefire.debug {{args}}
just backend-spotless && dotenvx run -f .env -f .env.shared -- bash ./mvnw checkstyle:check verify -Dspring.profiles.active=ci -Dmaven.surefire.debug {{args}}

# Run the frontend
frontend-dev *args:
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ _Last updated: 02/14/2026_

Codebloom features include

- [User profiles with submission history](./docs/features/USER-PROFILE.md)
- [Automatic LeetCode syncing in the background](./docs/features/BGSYNC.md)
- [University-specific leaderboards](./docs/features/LEADERBOARD.md)
- [Problem Of The Day](./docs/features/POTD.md)
- [Automatic achievements](./docs/features/ACHIEVEMENTS.md)
- [Embeddable widgets](./docs/features/EMBED.md)
- [Dynamic question scoring](./docs/features/SCORES.md)
- [Live multiplayer duels](./docs/features/DUELS.md)
- [Club/organization integrations via Discord servers](./docs/features/DISCORD-INTEGRATIONS.md)

[Goto `docs/features` to view all feature documentation](./docs/features)
- [User profiles with submission history](https://docs.patinanetwork.org/codebloom/features/USER-PROFILE/)
- [Automatic LeetCode syncing in the background](https://docs.patinanetwork.org/codebloom/features/BGSYNC/)
- [University-specific leaderboards](https://docs.patinanetwork.org/codebloom/features/LEADERBOARD/)
- [Problem Of The Day](https://docs.patinanetwork.org/codebloom/features/POTD/)
- [Automatic achievements](https://docs.patinanetwork.org/codebloom/features/ACHIEVEMENTS/)
- [Embeddable widgets](https://docs.patinanetwork.org/codebloom/features/EMBED/)
- [Dynamic question scoring](https://docs.patinanetwork.org/codebloom/features/SCORES/)
- [Live multiplayer duels](https://docs.patinanetwork.org/codebloom/features/DUELS/)
- [Club/organization integrations via Discord servers](https://docs.patinanetwork.org/codebloom/features/DISCORD-INTEGRATIONS/)

[View all Codebloom documentation](https://docs.patinanetwork.org/codebloom/)

Codebloom is a public-first platform that does not require authentication to view most data, so please feel free to click around at [codebloom.patinanetwork.org](https://codebloom.patinanetwork.org)!

Expand Down Expand Up @@ -72,16 +72,16 @@ This repository is a monorepo that contains many different pieces of Codebloom,
- [Goto `.github/scripts/redeploy/` to view Bun Shell redeploy scripts](./.github/scripts/redeploy/)
- [Goto `infra/`](./infra/)
- [View detailed documentation](./infra/README.md)
- [View observability documentation](./docs/observability/README.md)
- [View observability documentation](https://docs.patinanetwork.org/codebloom/observability/)
- Our internal tools (e.g. custom Ink CLI scripts & our internal standup bot) are currently being written in [Rust](https://rust-lang.org/) and [TypeScript](https://typescriptlang.org)
- [Goto `internal/`](./internal/)
- [View detailed documentation](./internal/README.md)
- Environment secrets live in local env files generated from Azure.
- [View detailed documentation](./docs/local/SECRET.md)
- [View detailed documentation](https://docs.patinanetwork.org/codebloom/local/SECRET/)

## Setup

Please go to [`docs/setup/README.md`](./docs/local/README.md) to begin setup instructions for local development.
Please go to the [local development docs](https://docs.patinanetwork.org/codebloom/local/) to begin setup instructions for local development.

## Authors

Expand Down
10 changes: 0 additions & 10 deletions docs/QUICK-LINKS.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Documentation

Documentation can be found at https://docs.patinanetwork.org/codebloom.

32 changes: 0 additions & 32 deletions docs/ci/AUTO_APPROVALS.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/features/ACHIEVEMENTS.md

This file was deleted.

30 changes: 0 additions & 30 deletions docs/features/BGSYNC.md

This file was deleted.

82 changes: 0 additions & 82 deletions docs/features/DISCORD-INTEGRATIONS.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/features/DUELS.md

This file was deleted.

40 changes: 0 additions & 40 deletions docs/features/EMBED.md

This file was deleted.

48 changes: 0 additions & 48 deletions docs/features/LEADERBOARD.md

This file was deleted.

Loading
Loading