https://github.com/sdslabs/nymeria
Complete reimplementation of `Login` in Go using ory.sh in our applications.
https://github.com/sdslabs/nymeria
Last synced: over 1 year ago
JSON representation
Complete reimplementation of `Login` in Go using ory.sh in our applications.
- Host: GitHub
- URL: https://github.com/sdslabs/nymeria
- Owner: sdslabs
- License: mit
- Created: 2022-06-23T19:14:27.000Z (almost 4 years ago)
- Default Branch: dev
- Last Pushed: 2025-02-03T17:42:07.000Z (over 1 year ago)
- Last Synced: 2025-02-03T18:44:56.255Z (over 1 year ago)
- Language: Go
- Size: 361 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# nymeria (accounts-v2)
Complete reimplementation of `Login` in Go using ory.sh in our applications.
# Getting Started
## To setup Nymeria
Clone the repository
```sh
git clone git@github.com:sdslabs/nymeria.git
```
Enter the directory and download the vendor files
```sh
cd nymeria/
make vendor
```
Copy the contents of `config.sample.yaml` to `config.yaml`
```sh
cp config.sample.yaml config.yaml
```
Build the binary using the command.
```sh
make build
```
Run the binary using the command
```sh
make run
```
To perform lint and formatting of the code, install golangci-lint using the command
```sh
make install-golangci-lint
```
To lint the code, run the command
```sh
make lint
```
To format the code, run the command
```sh
make format
```
Add new packages to the repository using the command
```sh
go get -u
```
Hot reloading support
- run the following command to install `air` (hot reload support)
```sh
make install-air
```
- run the following command to run nymeria with `air` (hot reload support)
```sh
make dev
```
## To setup Ory Kratos
Clone the ory/kratos repository
```sh
git clone https://github.com/ory/kratos.git
```
Enter the Kratos directory and Change the Kratos Version to v0.10.0
```sh
cd kratos
git checkout v1.3.1
```
Download the dependencies
```sh
go mod download
go install -tags sqlite,json1,hsm .
```
Add the kratos binary to your Path
```sh
$(go env GOPATH)/bin/kratos help
```
Copy the Kratos config file and identity schema from nymeria
```sh
cp ../nymeria/config/kratos_config.yaml ./contrib/quickstart/kratos/email-password/kratos.yml
cp ../nymeria/config/identity.schema.json ./contrib/quickstart/kratos/email-password/identity.schema.json
```
Run the following command to use Kratos in containerized form
```sh
docker compose -f quickstart.yml -f quickstart-standalone.yml -f quickstart-postgres.yml up --build --force-recreate
```