This is an MVP for creating wantlists for TradeMaximizer. The hope is that it can facilitate a math trade for things other than boardgames, which was the intention of the original TradeMaximizer. This only creates the wantlist text file that is inputted into the TradeMaximizer .jar file. Hope is that that is turned into a service or ported to javascript in the future to be done all in app.
Demo: https://potluck-prototype.herokuapp.com/
- Install mongodb, setup a database
- Change
.env.example
to.env
and fill info with your connection string- You can use cloud-based Atlas service or local mongodb server.
npm install
all the things in the root folder andclient
subfolder- To start mongodb, start from command line:
mongod --auth
- Run server in cli tab with
nodemon server.js
. This watches server files and reloads automatically - Run front-end app by
cd client
, thennpm run start
. This also hot reloads - Create a
seeds
collection with one entry withcounter: 0
property in database
To create the wantlists instead of using a grid like the OLWLG and Abecorn, or setting individual values, instead we simply sort a list.
!Warning - Still need to implement duplicate protection though!
- Used https://github.com/beaucarnes/mern-exercise-tracker-mongodb as foundation (Mongoose may have been unnecessary).
- Inspiration from: https://github.com/abecorn/abecornlite
- Also the commercial site: abecorn.com
- The BoardGameGeek community and everything they've done and shared about Math Trades - https://boardgamegeek.com/wiki/page/Math_Trades
- The original TradeMaximizer: https://github.com/chrisokasaki/TradeMaximizer
- Online Wantlist Generator: https://boardgamegeek.com/wiki/page/OLWLG#toc12
- TradeMaximizer wiki: https://boardgamegeek.com/wiki/page/TradeMaximizer
- Setting up mongo locally: https://zellwk.com/blog/local-mongodb/
- https://zendeskgarden.github.io/react-components/tables/ for the sorting table and how to use it with https://github.com/atlassian/react-beautiful-dnd
- Inspiration that this can work in real-life during COVID as well: https://boardgamegeek.com/thread/2459102/9th-annual-pacific-northwest-game-swap/page/14