Uhhhh it's a school thing don't ask
- Pull this git
- Install dependencies
npm install pkg.json
- Run the server
node ./TheBeaverDam.js
- Head to
http://localhost:8000
in your browser and you will be connected to the BeaverDam Gateway
There are 2 controls: Add and Remove
When adding a log to the Stack, you will need to specify the dimensions and type of wood of the log. When removing a log, you will be prompted with the details of the log at the top of the stack. When a log is rmeoved, the stack size decreases.
There are only 3 commands:
- Help: Shows a help message
- Clear: Removes all logs from the stack
- Size: Shows how many logs are on the stack
BeaverDam is made to demonstrate a stack made in JavaScript