Rename to magicwallet
This commit is contained in:
parent
75955f5f84
commit
55fdc879d8
|
@ -1,5 +1,5 @@
|
||||||
# go executable
|
# go executable
|
||||||
hermes
|
magicwallet
|
||||||
|
|
||||||
# environment
|
# environment
|
||||||
.env
|
.env
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -3,11 +3,11 @@
|
||||||
SOURCE := $(shell find fonts lib pages server -type f) main.go
|
SOURCE := $(shell find fonts lib pages server -type f) main.go
|
||||||
|
|
||||||
# build binary for deployment
|
# build binary for deployment
|
||||||
build: hermes
|
build: magicwallet
|
||||||
hermes: $(SOURCE)
|
magicwallet: $(SOURCE)
|
||||||
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
tailwindcss -i public/css/base.css -o public/css/tailwind.css
|
||||||
templ generate -path pages
|
templ generate -path pages
|
||||||
go build -o hermes .
|
go build -o magicwallet .
|
||||||
|
|
||||||
# run code for development (no watch mode yet)
|
# run code for development (no watch mode yet)
|
||||||
run:
|
run:
|
||||||
|
|
32
README.md
32
README.md
|
@ -1,15 +1,29 @@
|
||||||
# hermes
|
|
||||||
|
|
||||||
```
|
```
|
||||||
.__
|
.__
|
||||||
| |__ ___________ _____ ____ ______
|
_____ _____ ____ |__| ____
|
||||||
| | \_/ __ \_ __ \/ \_/ __ \ / ___/
|
/ \\__ \ / ___\| |/ ___\
|
||||||
| Y \ ___/| | \/ Y Y \ ___/ \___ \
|
| Y Y \/ __ \_/ /_/ > \ \___
|
||||||
|___| /\___ >__| |__|_| /\___ >____ >
|
|__|_| (____ /\___ /|__|\___ >
|
||||||
\/ \/....wallet....\/ \/ \/
|
\/ \//_____/..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**
|
**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
|
go 1.22.0
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# TODO: enumerate directories with shell
|
# TODO: enumerate directories with shell
|
||||||
WATCH="db/ env/ fonts/ lib/ lightning/ pages/ public/ server/"
|
WATCH="db/ env/ fonts/ lib/ lightning/ pages/ public/ server/"
|
||||||
BINARY=hermes
|
BINARY=magicwallet
|
||||||
PID=
|
PID=
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
24
main.go
24
main.go
|
@ -7,22 +7,22 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/ekzyis/hermes/db"
|
"github.com/ekzyis/magicwallet/db"
|
||||||
"github.com/ekzyis/hermes/env"
|
"github.com/ekzyis/magicwallet/env"
|
||||||
"github.com/ekzyis/hermes/lightning"
|
"github.com/ekzyis/magicwallet/lightning"
|
||||||
"github.com/ekzyis/hermes/server"
|
"github.com/ekzyis/magicwallet/server"
|
||||||
"github.com/lightninglabs/lndclient"
|
"github.com/lightninglabs/lndclient"
|
||||||
)
|
)
|
||||||
|
|
||||||
func banner() {
|
func banner() {
|
||||||
fmt.Printf("" +
|
s := ""+
|
||||||
".__\n" +
|
` .__
|
||||||
"| |__ ___________ _____ ____ ______\n" +
|
_____ _____ ____ |__| ____
|
||||||
"| | \\_/ __ \\_ __ \\/ \\_/ __ \\ / ___/\n" +
|
/ \\__ \ / ___\| |/ ___\
|
||||||
"| Y \\ ___/| | \\/ Y Y \\ ___/ \\___ \\\n" +
|
| Y Y \/ __ \_/ /_/ > \ \___
|
||||||
"|___| /\\___ >__| |__|_| /\\___ >____ >\n" +
|
|__|_| (____ /\___ /|__|\___ >
|
||||||
" \\/ \\/...wallet...\\/ \\/ \\/\n",
|
\/ \//_____/..wallet..\/ `
|
||||||
)
|
fmt.Printf("%s\n\n", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -2,7 +2,7 @@ package components
|
||||||
|
|
||||||
templ Head() {
|
templ Head() {
|
||||||
<head>
|
<head>
|
||||||
<title>hermes</title>
|
<title>magicwallet</title>
|
||||||
<!-- TODO: add favicon, manifest etc. -->
|
<!-- TODO: add favicon, manifest etc. -->
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
|
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package pages
|
package pages
|
||||||
|
|
||||||
import "github.com/ekzyis/hermes/pages/components"
|
import "github.com/ekzyis/magicwallet/pages/components"
|
||||||
|
|
||||||
templ Index() {
|
templ Index() {
|
||||||
<html>
|
<html>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ekzyis/hermes/pages"
|
"github.com/ekzyis/magicwallet/pages"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package middleware
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/ekzyis/hermes/server/router"
|
"github.com/ekzyis/magicwallet/server/router"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ package router
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/ekzyis/hermes/db"
|
"github.com/ekzyis/magicwallet/db"
|
||||||
"github.com/ekzyis/hermes/lightning"
|
"github.com/ekzyis/magicwallet/lightning"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ekzyis/hermes/server/router"
|
"github.com/ekzyis/magicwallet/server/router"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue