Skip to content

catdevman/htmx-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

===== README.md =====

Prereqs

  • Docker
  • Go
  • awslocal
  • Air (optional)

Setup

  • Get DDB running locally with localstack
$ docker compose up -d
  • Create test DDB table
$ aws --endpoint-url=http://127.0.0.1:8000 dynamodb create-table --table-name test --attribute-definitions AttributeName=pk,AttributeType=S AttributeName=sk,AttributeType=S --key-schema AttributeName=pk,KeyType=HASH AttributeName=sk,KeyType=RANGE --billing-mode PAY_PER_REQUEST

Run App

  • optional, this should hot rebuild for view and code changes but it wasn't always working perfectly
$ export OAUTH_KEY=set_key
$ export OAUTH_SECRET=set_secret
$ export OAUTH_DOMAIN=set_domain
$ export DDB_TABLE=test
$ cd shortener
$ air
  • Use the go cli to run the project
$ export OAUTH_KEY=set_key
$ export OAUTH_SECRET=set_secret
$ export OAUTH_DOMAIN=set_domain
$ export DDB_TABLE=test
$ cd shortener
$ go run ./
$ ngrok start --all

Using

TODOs

  • Help Screen to show keyboard shortcuts
  • Setup keyboard shortcuts for adding url and showing help screen
  • Refactor DDB usage and fiber setup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published