Skip to content

Commit

Permalink
refactor: rename example to quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
lfleischmann authored Oct 21, 2022
1 parent 4c2a15b commit acb0275
Show file tree
Hide file tree
Showing 40 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
include:
- context: ./backend
image: ghcr.io/teamhanko/hanko
- context: ./example
image: ghcr.io/teamhanko/hanko/example
- context: ./quickstart
image: ghcr.io/teamhanko/hanko/quickstart
- context: ./elements
image: ghcr.io/teamhanko/hanko/elements
- context: ./frontend-sdk
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ docker compose -f deploy/docker-compose/quickstart.yaml -p "hanko-quickstart" up
```
> **Note**: Docker (Desktop) needs to be running in order for the command to run.
After the services are up and running, the example login can be opened at `localhost:8888`. To receive emails without your own
After the services are up and running, the login page can be viewed at `localhost:8888`. To receive emails without your own
smtp server, we added [mailslurper](https://github.com/mailslurper/mailslurper) which will be available at `localhost:8080`.

> **Note**: Hanko services are not published to a registry yet and will be built locally before the services are started.
Expand All @@ -84,7 +84,7 @@ The Hanko project consists of
- [backend](/backend/README.md) - An authentication API powering passkeys, passcodes, and passwords, as well as user management and JWT token issuing
- [hanko-elements](/elements/README.md) - A slick web component made for Hanko backend that features a polished onboarding and login experience and is highly customizable
- [hanko-frontend-sdk](/frontend-sdk/README.md) - A client package for using the Hanko API
- [example](/example) - The quickstart example app, showing off Hanko's login experience and acting as a reference implementation
- [quickstart](/quickstart) - The quickstart example app, showing off Hanko's login experience and acting as a reference implementation
- [examples](/examples) - Hanko example implementations for a number of frameworks
- [docs](/docs) - The Hanko documentation

Expand Down
4 changes: 2 additions & 2 deletions deploy/docker-compose/quickstart.debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ services:
- "9501:80"
networks:
- intranet
example:
build: ../../example
quickstart:
build: ../../quickstart
ports:
- "8888:8080"
environment:
Expand Down
4 changes: 2 additions & 2 deletions deploy/docker-compose/quickstart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ services:
- "9501:80"
networks:
- intranet
example:
build: ../../example
quickstart:
build: ../../quickstart
ports:
- "8888:8080"
environment:
Expand Down
2 changes: 1 addition & 1 deletion e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To run the tests you need to have the following software installed:
Furthermore, you need running instances of:

- the Hanko [backend](../backend)
- a running frontend application (e.g. our [example](../example)) using the web component provided by
- a running frontend application (e.g. our [quickstart](../quickstart)) using the web component provided by
[hanko-elements](../elements)
- [Mailslurper](https://github.com/mailslurper/mailslurper) as an SMTP server (used to test passcodes through mail
retrieval via its [API](https://github.com/mailslurper/mailslurper/wiki/API-Guide))
Expand Down
17 changes: 0 additions & 17 deletions example/Dockerfile

This file was deleted.

17 changes: 17 additions & 0 deletions quickstart/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Build the quickstart binary
FROM golang:1.17 as builder

WORKDIR /workspace
COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o quickstart main.go

# Use distroless as minimal base image to package quickstart binary
# See https://github.com/GoogleContainerTools/distroless for details
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/quickstart .
COPY /public /public
USER 65532:65532

ENTRYPOINT ["/quickstart"]
2 changes: 1 addition & 1 deletion example/go.mod → quickstart/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/teamhanko/hanko/example
module github.com/teamhanko/hanko/quickstart

go 1.17

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion example/main.go → quickstart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"github.com/labstack/echo/v4"
mw "github.com/labstack/echo/v4/middleware"
"github.com/teamhanko/hanko/example/middleware"
"github.com/teamhanko/hanko/quickstart/middleware"
"html/template"
"io"
"log"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit acb0275

Please sign in to comment.