mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-11 13:29:12 +00:00
- **feat: remove Hway deployment** - **feat: introduce session middleware for requests** - **refactor: update path imports to use new pkg folder** - **feat: add gRPC client for interacting with services** - **feat: remove grpc client and use REST api** - **refactor: move from to** - **feat: add client views endpoint** - **feat: add webauthn support** - **closes: #1124** - **refactor: Improve PR labeler configuration** - **feat: add milestone discussion template** - **feat: remove OKR tracking issue template** - **feat: use gorilla sessions for session management** - **refactor: move pubkey related code to** - **<no value>** - **refactor: remove unused identifier type** - **feat: integrate Macaroon Keeper with Service Module** - **refactor: rename worker routes for clarity**
49 lines
798 B
Markdown
49 lines
798 B
Markdown
# Nebula
|
|
|
|
A Templ component library for the Sonr DWN (Decentralized Web Node) client.
|
|
|
|
## Overview
|
|
|
|
### 3rd Party
|
|
|
|
- [htmx](https://htmx.org/)
|
|
- [tailwindcss](https://tailwindcss.com/)
|
|
- [templ](https://templ.dev/)
|
|
- [alpinejs](https://alpinejs.dev/)
|
|
|
|
### Components
|
|
|
|
- Navbar
|
|
- Footer
|
|
- Login
|
|
- Register
|
|
- Profile
|
|
- Authorize
|
|
|
|
## Usage
|
|
|
|
```go
|
|
package main
|
|
|
|
import (
|
|
"github.com/onsonr/sonr/pkg/nebula"
|
|
"github.com/onsonr/sonr/pkg/nebula/components"
|
|
"github.com/onsonr/sonr/pkg/nebula/pages"
|
|
)
|
|
|
|
func main() {
|
|
e := echo.New()
|
|
e.GET("/", pages.Home)
|
|
e.GET("/login", pages.Login)
|
|
e.GET("/register", pages.Register)
|
|
e.GET("/profile", pages.Profile)
|
|
e.GET("/authorize", pages.Authorize)
|
|
e.GET("/components", components.Home)
|
|
e.Logger.Fatal(e.Start(":1323"))
|
|
}
|
|
```
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE)
|