Skip to content

Commit

Permalink
Merge pull request #4 from martinjirku/dev
Browse files Browse the repository at this point in the history
first important merge to main
  • Loading branch information
martinjirku authored Oct 13, 2024
2 parents 24f15eb + c3381f5 commit b4fc9b3
Show file tree
Hide file tree
Showing 191 changed files with 5,355 additions and 3,068 deletions.
47 changes: 47 additions & 0 deletions .air.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"

[build]
args_bin = ["--host", "localhost", "--public", "./dist"]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ./main.go"
delay = 200
exclude_dir = ["assets", "tmp", "vendor", "node_modules", "public"]
# exclude_file = []
# exclude_regex = []
exclude_unchanged = false
follow_symlink = false
# full_bin = ""
include_dir = ["handlers", "models", "services", "utils", "pkg", "templates"]
include_ext = ["go", "tmpl"]
include_file = ["main.go", "dist/assets/style-*.css"]
kill_delay = 5000000000 # nanosecond
log = "build-errors.log"
poll = false
poll_interval = 0
# Workaround for shutting down the server (https://github.com/cosmtrek/air/issues/534)
post_cmd = ["lsof -i tcp:8080 | awk 'NR==2{print $2}' | xargs kill"]
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = true
stop_on_error = true

[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
16 changes: 9 additions & 7 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/node_modules
*.log
.DS_Store
.env
/.cache
/public/build
/build
# flyctl launch added from .gitignore
**/node_modules
**/public
**/tmp
**/dist
**/.env
**/vendor/**/*
fly.toml
**/.task
15 changes: 12 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
DATABASE_URL="file:./data.db?connection_limit=1"
SESSION_SECRET="5c95f3f3875ca0a5534b3397b0d24771e360ba892095af503083d8eac87b770f"

GOOGLE_API_KEY=""
GOOGLE_CAPTCHA_SITE=""
GOOGLE_CALENDAR_ID="" # mcmamina
GOOGLE_SMTP_PWD=""
GOOGLE_SMTP_MAIL=""
GOOGLE_AUTH_CLIENT_ID=""
GOOGLE_AUTH_CLIENT_SECRET=""
GOOGLE_AUTH_REDIRECT_PATH=""
POSTGRES_DB=""
POSTGRES_USER=""
POSTGRES_PASSWORD=""
PANORAMA_URL="http://mcmamina.panfoto.sk/"
135 changes: 0 additions & 135 deletions .eslintrc.js

This file was deleted.

41 changes: 0 additions & 41 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: weekly
Loading

0 comments on commit b4fc9b3

Please sign in to comment.