GithubHelp home page GithubHelp logo

prastoin / temporal-ecommerce-typescript Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 346 KB

https://github.com/temporalio/temporal-ecommerce

JavaScript 7.07% TypeScript 85.26% Shell 4.92% Makefile 2.75%

temporal-ecommerce-typescript's Introduction

temporal-ecommerce-typescript's People

Contributors

prastoin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

temporal-ecommerce-typescript's Issues

Implem addToCart & removeFromCart

addToCart removeFromCart

We should setup a workflow that will listen for at least 2 signals:

  • addTocart => That will add given product to the user cart
  • removeToCart => That will remove given product from the user cart

Note that if the workflow state products list is empty then the workflow is not kept alive/evicted.
Also note that for the moment no Node.js API is involved if it's not the ts-node client.ts script.

Features to implement

Feature to implement

At the creation of this issue

From now we have a functional and tested workflow that handles additions and deletions from its own productCollection state.
When the products array is empty the workflow is evicted.

Features list

By listing the source Golang repo that we wanna migrate we can find the following features:

  • Add product to cart
  • Delete product from cart
  • Update email adress
  • #4
  • checkout + stripe

Setup API

API

Setup API wrapping my-temporal-app
Would use sveltkit to both build serverless calls toward the temporal instance and building the view

abandonned cart timeout + email

Abandoned cart timeout + email

After a given timeout X the workflow will be evicted within the same time sending an email to notify the user.
Mail will be sent via an Activity.

  • feature
  • tests

Create monorepo using turborepo

Monorepo

We should instantiate a monorepo using turborepo.
It will for the moment be containing at least two packages:

  • client ( that might be using sveltekit pages and BFF hitting the temporal package)
  • temporal

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.