lemons

module
v0.0.0-...-c76701d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: MIT

README

Mister Lemons

Mister Lemons is a lemonade stand simulator. Its evolution is partly an exercise in building the game, but mostly an exercise in learning various JS development techniques.

PSA to myself

glide does not like symlinks.

TODO

  • clean auth/auth.go out of auth/service.go
  • add logging to auth middleware
  • handle sql nullable type
  • test remaining endpoints
  • make login store last login time
  • fix the dockerfile for vendor
  • js: get front end loading
  • js: remove immutable
  • js: inline "container" elements
  • js: build "modules"
  • js: be sure moment, lodash, router, redux, sagas all in
  • js: revise state shape
  • xx: integrate authentication / login
    • js: remove signup (add when needed)
    • go: login endpoint returns user
    • js: debug user fetch from login
    • js: debug routes & such
  • go: restructure around passed-in cfg & db (closures)
  • go: restructure to be top-level
  • go: store status endpoint
    • turn dynamic
      • calculate sales
      • adjust inventory
    • ledger model (or just roll up?)
  • js: store status panel
  • weather model

Rethink:

  • Store status
    • Cash position
    • Sales
      • Per day at first
      • Nice per-hour chart might be nice eventually
      • Changes when time moves
    • Expenses
      • Yesterday's total
      • Today's itemized expenses
      • Expenses can change between turns
    • Inventory
      • Prepared lemonade
      • Ingredients
      • Can change between turns
    • Weather
      • Day #
      • Forecast
      • Yesterday

Projected Play

  1. See store status:
  • Yesterday's sales
  • Yesterday's expenses
  • Weather for yesterday, today
  1. Take turn:
  • Purchase
    • See prices
    • See current on hand
    • See projected on hand
    • See projected cost
    • Button to add qty
    • Button to commit *
  • Brew
    • See current on hand
    • See projected on hand
    • Button to add qty
    • See cost per unit
    • Set price
    • Button to commit *
  • Run the day

UI:

  • daily report: weather, sales, yesterday's expenses
  • "activity panel"

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL