Complete reimplementation of Login in Go using ory.sh in our applications.
Clone the repository
git clone git@github.com:sdslabs/nymeria.gitEnter the directory and download the vendor files
cd nymeria/
make vendorCopy the contents of config.sample.yaml to config.yaml
cp config.sample.yaml config.yamlBuild the binary using the command.
make buildRun the binary using the command
make runTo perform lint and formatting of the code, install golangci-lint using the command
make install-golangci-lintTo lint the code, run the command
make lintTo format the code, run the command
make formatAdd new packages to the repository using the command
go get -u <package_path>Hot reloading support
- run the following command to install
air(hot reload support)
make install-air- run the following command to run nymeria with
air(hot reload support)
make devClone the ory/kratos repository
git clone https://github.com/ory/kratos.gitEnter the Kratos directory and Change the Kratos Version to v0.10.0
cd kratos
git checkout v1.3.1Download the dependencies
go mod download
go install -tags sqlite,json1,hsm .Add the kratos binary to your Path
$(go env GOPATH)/bin/kratos helpCopy the Kratos config file and identity schema from nymeria
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.jsonRun the following command to use Kratos in containerized form
docker compose -f quickstart.yml -f quickstart-standalone.yml -f quickstart-postgres.yml up --build --force-recreate