OSU CSE 5911 Capstone Project: Elephant Vending Machine in coordination with Cincinnati Zoo. Designed to facilitate automated behavioral psychology experiments.
For this project to run successfully, you must have installed:
- Node >= 8.10
- npm >= 5.6
NOTE: You will need to set your local environment variables if not connected to the actual backend running on the Raspberry Pi attached to the real hardware. See documentation here for reference.
- Navigate to the root directory of this project
- Run
npm start
- Navigate to the root directory of this project
- Run
npm run docs
- Open the generated page in
docs/index.html
in a browser- Up to date documentation can be found here.
- Navigate to the root directory of this project
- Run
npm run lint
- Note: Code is automatically formatted with Prettier on each commit. You can use
npm run format
to run the formatter manually
- Note: Code is automatically formatted with Prettier on each commit. You can use
- Navigate to the root directory of this project
- Run
npm test
- A coverage report can be viewed with
npm run test:coverage
- A coverage report can be viewed with
- Clone this repo to the Pi
- Navigate to the cloned directory
- Install docker and docker-compose
- Run
docker-compose up --build
to start the container- This will ensure the app automatically restarts in case of errors or reboots.
- To stop the containers you can use
ctrl-c
ordocker-compose down