Git Product home page Git Product logo

cement's Introduction

Hi, my name is Andreas

Software engineer for over 10 years with a great width of experiances, and a S.O.L.I.D. evangelist.

I'm am currently working as Software Engineer at Climate Partner in Munich, Germany. We are helping companies with theire climate acttion journey and doing our best to make sure we achive the Paris Agreement.



Anurag's GitHub stats


My Skills

cement's People

Contributors

andlo779 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

cement's Issues

[FE] Login

As a USER I want to be able to login in the user interface so I can see the resources I have the access to.

Acceptance criteria:

  • add Login button to Navigation
  • when user click on Login show a pop-up with username/password form
  • if 200:
    • if session-id:
      • new layout on pop-up with OTP form
        • normal error handling
    • if access-token:
      • close pop-up
    • then close pop-up
  • if 401:
    • empty password field + display error message

User flow [WIP]

  1. User go to /
  2. Main page is loaded with Header and Footer
    • Header has navigation to home + about + login
  3. User clicks on Login
  4. Login popup is shown
  5. User provides auth data + clicks login (send)
    • If TwoFactorAuth is active new popup is shown
    • User provides OTP + click login
  6. Popup is minimised + login in Header changes to logout + Left side Navigation is shown
    • Navigation can be minimised (burger style)

[FE] Set up FE project

As a user I want to be able to use the functionality from Concrete app in a web browser.

Acceptance criteria:

  • new GitHub project: Cement
  • teck stack (npm init vite@latest demo-project -- --template react-ts)
    • Vite
    • React
    • TypeScript
  • GitHub Actions for build lint and test?
  • Two pages:
    • Main
      • content:
        • Simple welcome message
    • About
      • content:
        • Small text about this project
        • Link to email
        • Link to GitHub (Concrete + Cement)
    • Navigation
      • static navigation to Main(Home?) and About page
      • position: top left (header)
    • Footer
      • Licence (MIT link to GitHub?)
      • Copyright (Andreas Lord + email link)
      • Link to About

Lessons learned:

This task was already way to big ๐Ÿ˜„
And some of the acceptance criteria needs more discovery, like Copyright.

[FE][BE] Logout functionality

As a USER I want to be able to log out and close active session in application so no one can access my resources even if they get hold of my device.

TODO - split into two tasks (one for FE and one for BE, GitHub issues can only be linked to one repo)

Acceptance criteria:

  • Logout button
  • Clear access + refresh -token from FE-app
  • Delete active(?) refresh-token in BE
  • Update login status to logged out in FE

[FE] Ci pipeline

As a DEVELOPER I want my code to be build every time I push my code to GitHub.

[FE] Automatically refresh auth token

As a USER I want my login session to be active as long as I want.

Acceptance criteria:

  • if BE response with 401 and refresh token exists:
    • use refresh token to retrieve new access token
    • if successfully retrieved new access-token: retry last call
    • if not: logout user (?? - depends on login status ticket)

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.