Code Monkey home page Code Monkey logo

testorykratos's Introduction

Test of ory/kratos sdk for javascript/typescript/angular

Todos

  • Try to initialize registration request in popup window with window.open and watch at cookie and flow

How you can run the project (Feel free to modify this section as I didn't verify it yet)

  • Be sure to have the @angular/cli installed globally via npm (if you need to, download and install nodejs in advance to use npm)
  • git clone the repository to your machine
  • cd into it
  • run npm i
  • run ng build --watch
  • run docker-compose -f docker/docker-compose.yml up -d to start up the api server (if not successfull, try docker-compose -f docker/docker-compose.yml up and watch out for errors)
  • open your browser at http://localhost:4200

How I set up the project:

  • Via npm i -g @angular/cli globally
  • Install docker on a windows machine
  • Started an angular project with ng new
  • Set up the ./docker/docker-compose.yml file and corresponding config files to be able to easily startup the ory/kratos api server.
  • Installed the ory/kratos sdk (https://www.npmjs.com/package/@oryd/kratos-client)
  • Provided the PublicApi Class inside the app.module.ts and wrote a litte factory function to be have only one instance of it in the whole project and to be able to inject it reg. to dependency injection.
  • Defined the basepath in the environment file to point at the api.

Contribution very appreciated

Please help me and the ory developers to test and discover difficulties with the typescript sdk for ory/kratos

testorykratos's People

Contributors

tminnovations avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.