Skip to content

brainchild-projects/printables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printables

test and build Maintainability Coverage Status

https://printables.pages.dev

Printable resources mainly for education.

Development

To start the development server, run:

npm start

Tests

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

Troubleshooting Tests

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

Generating Pages

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