Rename to magicwallet
This commit is contained in:
parent
75955f5f84
commit
55fdc879d8
|
@ -1,5 +1,5 @@
|
|||
# go executable
|
||||
hermes
|
||||
magicwallet
|
||||
|
||||
# environment
|
||||
.env
|
||||
|
|
6
Makefile
6
Makefile
|
@ -3,11 +3,11 @@
|
|||
SOURCE := $(shell find fonts lib pages server -type f) main.go
|
||||
|
||||
# build binary for deployment
|
||||
build: hermes
|
||||
hermes: $(SOURCE)
|
||||
build: magicwallet
|
||||
magicwallet: $(SOURCE)
|
||||
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
||||
templ generate -path pages
|
||||
go build -o hermes .
|
||||
go build -o magicwallet .
|
||||
|
||||
# run code for development (no watch mode yet)
|
||||
run:
|
||||
|
|
32
README.md
32
README.md
|
@ -1,15 +1,29 @@
|
|||
# hermes
|
||||
|
||||
```
|
||||
.__
|
||||
| |__ ___________ _____ ____ ______
|
||||
| | \_/ __ \_ __ \/ \_/ __ \ / ___/
|
||||
| Y \ ___/| | \/ Y Y \ ___/ \___ \
|
||||
|___| /\___ >__| |__|_| /\___ >____ >
|
||||
\/ \/....wallet....\/ \/ \/
|
||||
.__
|
||||
_____ _____ ____ |__| ____
|
||||
/ \\__ \ / ___\| |/ ___\
|
||||
| Y Y \/ __ \_/ /_/ > \ \___
|
||||
|__|_| (____ /\___ /|__|\___ >
|
||||
\/ \//_____/..wallet..\/
|
||||
```
|
||||
|
||||
> _Not the wallet you need, but the wallet you deserve._
|
||||
> _the wallet that will make your sats disappear_ ✨
|
||||
|
||||
**Features**
|
||||
|
||||
- magic sats: you never know if they are real
|
||||
- does not care about your privacy
|
||||
- lessons about exit scams, shotgun KYC and other fun stuff
|
||||
- any balance above $100 is a donation
|
||||
- Wild West experience with no support or guarantees
|
||||
|
||||
**Bugs**
|
||||
|
||||
- can be self-hosted
|
||||
- supports NWC send and receive
|
||||
- withdrawals are sometimes possible
|
||||
- might actually be useful
|
||||
- lightning address
|
||||
|
||||
**Development**
|
||||
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/ekzyis/hermes
|
||||
module github.com/ekzyis/magicwallet
|
||||
|
||||
go 1.22.0
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# TODO: enumerate directories with shell
|
||||
WATCH="db/ env/ fonts/ lib/ lightning/ pages/ public/ server/"
|
||||
BINARY=hermes
|
||||
BINARY=magicwallet
|
||||
PID=
|
||||
|
||||
set -e
|
||||
|
|
24
main.go
24
main.go
|
@ -7,22 +7,22 @@ import (
|
|||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/ekzyis/hermes/db"
|
||||
"github.com/ekzyis/hermes/env"
|
||||
"github.com/ekzyis/hermes/lightning"
|
||||
"github.com/ekzyis/hermes/server"
|
||||
"github.com/ekzyis/magicwallet/db"
|
||||
"github.com/ekzyis/magicwallet/env"
|
||||
"github.com/ekzyis/magicwallet/lightning"
|
||||
"github.com/ekzyis/magicwallet/server"
|
||||
"github.com/lightninglabs/lndclient"
|
||||
)
|
||||
|
||||
func banner() {
|
||||
fmt.Printf("" +
|
||||
".__\n" +
|
||||
"| |__ ___________ _____ ____ ______\n" +
|
||||
"| | \\_/ __ \\_ __ \\/ \\_/ __ \\ / ___/\n" +
|
||||
"| Y \\ ___/| | \\/ Y Y \\ ___/ \\___ \\\n" +
|
||||
"|___| /\\___ >__| |__|_| /\\___ >____ >\n" +
|
||||
" \\/ \\/...wallet...\\/ \\/ \\/\n",
|
||||
)
|
||||
s := ""+
|
||||
` .__
|
||||
_____ _____ ____ |__| ____
|
||||
/ \\__ \ / ___\| |/ ___\
|
||||
| Y Y \/ __ \_/ /_/ > \ \___
|
||||
|__|_| (____ /\___ /|__|\___ >
|
||||
\/ \//_____/..wallet..\/ `
|
||||
fmt.Printf("%s\n\n", s)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -2,7 +2,7 @@ package components
|
|||
|
||||
templ Head() {
|
||||
<head>
|
||||
<title>hermes</title>
|
||||
<title>magicwallet</title>
|
||||
<!-- TODO: add favicon, manifest etc. -->
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package pages
|
||||
|
||||
import "github.com/ekzyis/hermes/pages/components"
|
||||
import "github.com/ekzyis/magicwallet/pages/components"
|
||||
|
||||
templ Index() {
|
||||
<html>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package router
|
||||
|
||||
import (
|
||||
"github.com/ekzyis/hermes/pages"
|
||||
"github.com/ekzyis/magicwallet/pages"
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package middleware
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/ekzyis/hermes/server/router"
|
||||
"github.com/ekzyis/magicwallet/server/router"
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ package router
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/ekzyis/hermes/db"
|
||||
"github.com/ekzyis/hermes/lightning"
|
||||
"github.com/ekzyis/magicwallet/db"
|
||||
"github.com/ekzyis/magicwallet/lightning"
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"github.com/ekzyis/hermes/server/router"
|
||||
"github.com/ekzyis/magicwallet/server/router"
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/labstack/echo/v4/middleware"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue