-
Notifications
You must be signed in to change notification settings - Fork 17
Updated documentation, minor fixes and docker-compose #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ArkadyBuryakov
wants to merge
5
commits into
dreamsofcode-io:main
Choose a base branch
from
ArkadyBuryakov:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4957a8b
chore: Fixed middleware test import
ArkadyBuryakov a951bca
chore: Used type narrowing to suppress TS alerts on API response hand…
ArkadyBuryakov 1d342dc
fix: added missing migration
ArkadyBuryakov d85642d
chore: Updated documentation to be more clear
ArkadyBuryakov 96aa952
feat: Added docker compose with automated migrations and hot reloads
ArkadyBuryakov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| root = "." | ||
| testdata_dir = "testdata" | ||
| tmp_dir = "tmp" | ||
|
|
||
| [build] | ||
| args_bin = [] | ||
| bin = "./tmp/main" | ||
| cmd = "go build -o ./tmp/main ." | ||
| delay = 1000 | ||
| exclude_dir = ["assets", "tmp", "vendor", "testdata"] | ||
| exclude_file = [] | ||
| exclude_regex = ["_test.go"] | ||
| exclude_unchanged = false | ||
| follow_symlink = false | ||
| full_bin = "" | ||
| include_dir = [] | ||
| include_ext = ["go", "tpl", "tmpl", "html"] | ||
| include_file = [] | ||
| kill_delay = "0s" | ||
| log = "build-errors.log" | ||
| poll = false | ||
| poll_interval = 0 | ||
| rerun = false | ||
| rerun_delay = 500 | ||
| send_interrupt = false | ||
| stop_on_root = false | ||
|
|
||
| [color] | ||
| app = "" | ||
| build = "yellow" | ||
| main = "magenta" | ||
| runner = "green" | ||
| watcher = "cyan" | ||
|
|
||
| [log] | ||
| main_only = false | ||
| time = false | ||
|
|
||
| [misc] | ||
| clean_on_exit = false | ||
|
|
||
| [screen] | ||
| clear_on_rebuild = false | ||
| keep_scroll = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FROM golang:1.24.2-alpine | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install air for hot reload | ||
| RUN go install github.com/air-verse/air@latest | ||
|
|
||
| # Copy go mod and sum files | ||
| COPY go.mod go.sum ./ | ||
|
|
||
| # Download dependencies | ||
| RUN go mod download | ||
|
|
||
| # Copy source code | ||
| COPY . . | ||
|
|
||
| EXPOSE 8080 | ||
|
|
||
| # Use air for hot reload | ||
| CMD ["air", "-c", ".air.toml"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| FROM oven/bun:1-alpine | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install build dependencies for native modules | ||
| RUN apk add --no-cache python3 make g++ | ||
|
|
||
| # Copy package files | ||
| COPY package.json bun.lockb* ./ | ||
|
|
||
| # Install dependencies | ||
| RUN bun install | ||
|
|
||
| # Copy source code | ||
| COPY . . | ||
|
|
||
| # Make entrypoint executable | ||
| RUN chmod +x /app/entrypoint.sh | ||
|
|
||
| EXPOSE 3000 | ||
|
|
||
| CMD ["/app/entrypoint.sh"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| echo "Running database migration..." | ||
| bun run db:migrate | ||
|
|
||
| echo "Starting development server..." | ||
| bun run dev | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| CREATE TABLE "jwks" ( | ||
| "id" text PRIMARY KEY NOT NULL, | ||
| "public_key" text NOT NULL, | ||
| "private_key" text NOT NULL, | ||
| "created_at" timestamp NOT NULL | ||
| ); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.