Code Monkey home page Code Monkey logo

magicauth's Introduction

Next + Redux + Redux-Saga + Styled Components app that implements a login using https://magic.link

This is an exercise on using Next, Redux and Redux-Sagas. It is a work in progress.

The proposal is to have different modules, as decoupled as possible from one another, in such a way that we can remove each of the modules and the other ones will keep working. When dependencies need to exist, we will keep them acyclic.

Navigation is dispatched through redux and sagas, so that we can have a nice history and also that we can test navigation as a saga side effect. The navigation module is not removable, we consider it as a core module. We may create other core modules in the future, like a notification one. When we need links on the pages, we will probably Override Next/Link to dispatch events and use this navigation approach.

All the magic link login is isolated in the authentication module. We also have a "local" user database, where we "keep" the registered users, just for the sake of the exercise.

As said, it still in progress and there are some ux/code issues to be tackled. You can check them in the /todo file.

dependencies:

navigation > app (router??? - would it be possible to be moved into navigation) welcome > components, app (selector???) authentication > app, components, navigation, loading (to notify applicationLoaded) users > authentication

magicauth's People

Contributors

brunoreis avatar

Watchers

 avatar  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.