百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

ng-summit-redux

> 编程语言
开源

注意: 此应用程序已过时,可能现在无法正常运行。我计划在不久的将来对其进行更新/修订……

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

注意: 此应用程序已过时,可能现在无法正常运行。我计划在不久的将来对其进行更新/修订……

NOTE

This application is a little out of date, and might not work right now. I'll plan on doing an update / revision of this in the near future to reflect the most recent versions of Angular, Angular-Redux, and lessons learned over the last few years.

ng-summit-redux

Trendy Brunch Demo Application for Angular Summit

Get it: git clone https://github.com/e-schultz/ng-summit-redux.git

To start:

  • npm install
  • npm run start
  • open browser to localhost:3000/src

Slides from the Talk

TODO: Add Link

App Overview

To demonstrate reactive architecture using redux + ng-redux with Angular.

TrendyBrunch

Simple resturant application,

  • Reducer for Lineup - people waiting to be seated
  • Reducer for Tables - handles seated people, and their orders
  • Reducer for Menu - food items available, and what is in stock

General Idea:

  • parties of people can join/leave the line
  • parties get seated at tables
  • tables can take place orders - add/remove items from an order, then have it be submitted
  • UI is derived from the application data structure

Data Structure

[Resturant] --------- [Menu]
  |      |               
[Line]   |             
      [Tables]
         | 
         |
      [Order]

UI Overview

  • Lineup + Lineup Summary
  • Dining Room - Smart Component
    • Table - Dumb component
      • Can seat a party
      • Start an order
      • Pay the bill
      • Clean the table
    • Menu - Dumb component
      • Add item to order
      • Remove item from order
      • Place Order
  • Tabs for Orders
    • Pending Orders - orders that are activly being placed
      • No actions, render only
    • Completed Orders - orders that have been taken, and are now in the kitchen
      • Can add items to order
      • Can remove items from order
      • Can deliver the order

Lineup

Data

  • ID
  • number of people

Actions/Events

  • Join Line - PARTY_JOINED
  • Seat a party - PARTY_SEATED
  • Leave the line - PARTY_LEFT

Tables

Data

  • table ID
  • number of seats

Actions/Events --- simplify it so a table is either clean / dirty / occupied
--- events place order / pay bill / seat

  • seat customer
  • add items to order
  • remove items from order
  • submit order
  • request bill
  • pay bill + leave
  • clean table

Orders

  • table id
  • id
  • Order { key = menu item id, value = qty}

MenuItems

  • id
  • price
  • stock
  • description

Components

There are a few examples of components, smart/dumb components, containers in this application.

In the 'Orders' component, three versions are available showing different approaches.

In src/components/index.js you can switch between them by commenting out others and only bringing in the one that you want.

javascript
// import orders from './orders-v1'; 
// import orders from './orders-v2'; 
import orders from './orders-v3'; 

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言