A simple SSR app that replicates a vending machine. Created with react using next.js as a framework. Express on the server side with MongoDB cluster as store and Mongoose as a wrapper for Mongo commands.
- rename .env-example file to .env and update the variables with the ones provided in the email
npm install
npm run build
npm run export
cd out
npx serve -p 8080
npm run dev
- some kind of guest user to track balance on server
- analytics for products and guest users. how much money they add, what kind of products are popular. etc
- get change functionality, and break the change into coins
- separate page to add products or modify them
- etc