Printable resources mainly for education.
To start the development server, run:
npm start
To run unit tests, run:
npm test
To run end-to-end tests, run:
npm run cypress
...and then run your tests from there.
You can also run them all from the command line with the following:
npx cypress run
If you get the following error when running tests:
libuuid.so.1: cannot open shared object file: No such file or directory
On Ubuntu, install the following canvas dependencies:
sudo apt install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
Then copy the libraries:
cp /lib/x86_64-linux-gnu/{libblkid,libmount,libuuid}.so.1 ./node_modules/canvas/build/Release
Then rebuild:
npm rebuild
This project comes with a script to help you build printable materials faster. Run the following script and follow the prompts.
npm run generate-page