Skip to content

A personal site brewed with Elixir, Tableau and Temple

License

Notifications You must be signed in to change notification settings

Dieman89/dieman

Repository files navigation

dieman.dev

:posts |> Enum.concat(:cv) |> deploy_to_web()


mix clean && mix compile          # clean and recompile
mix deps.get && mix start         # dev server at localhost:4999
mix build                         # build to site/ (CV auto-protected)
mix dieman.gen.post "Title"       # new post
cd worker && npx wrangler deploy  # deploy worker (hearts/views API)

CV is protected by Cloudflare Turnstile CAPTCHA + content-hashed URL.

Worker

Rust Cloudflare Worker for post hearts/views API. Deployed automatically on push to worker/.

cd worker
npx wrangler dev              # local dev server at localhost:8787
npx wrangler deploy           # deploy to Cloudflare

Test locally:

curl localhost:8787/api/hearts/my-post         # get count
curl -X POST localhost:8787/api/hearts/my-post # increment
curl localhost:8787/api/views/my-post          # get views
curl -X POST localhost:8787/api/views/my-post  # increment views

About

A personal site brewed with Elixir, Tableau and Temple

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •