目录

GoodsNStuff

Goods ‘n Stuff is a fake online retailer where you can buy your favorite goods and stuff. More specifically, the retailer currently sells three items:

  • Ron’s Custom Canoe whose price rotates between 250and250 and500
  • Ron’s Gingerbread House whose price rotates between 5and5 and15
  • April’s Marshmallow Ron whose price rotates between 15and15 and25

You can access the online retailer at https://goodsnstuff-xyngs.mongodbstitch.com.

To see a live visualiziation of the prices over the last day, visit the Goods ‘n Stuff Price Tracking Dashboard that I created using MongoDB Charts.

Here is how the prices are rotated behind the scenes every 10 minutes:

  1. A GitHub Action stored in updatePricesAndPushChanges.yml runs every 10 minutes. The Action executes the following steps:
    1. Checks out this code repo
    2. Updates the prices of each of the items using sed
    3. Commits the changes
    4. Pushes the changes to the repo
  2. The push to the repo triggers a MongoDB Stitch deployment so the online files are updated.
关于
66.1 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号