OpenClipArts, a work in progress
The oca project is an SVG explorer for the original
openclipart project. Since https://openclipart.org/ has been down for over 6 months, I thought I'd give it a shot. You can have a look at the demo: http://oca.waglo.com/ (new domain coming soon).
GNU/Linux / Unix-like OS
This might work on MacOS and Microsoft Windows but I haven't tested it. Let me know!
You'll need Node.js. The quickest way to install it for your local user is the n-install bash script.
curl are required for
curl -L https://git.io/n-install | bash
This will install the latest LTS, which is 12.13.0 at the time of this writing. You should restart your shell before using
The project is currently using SVGs found in the openclipart 0.18 package. There hasn't been an update in a while (the SVGs date back to 2005) which is why I'm pointing to Debian Jessie, but later versions are identical.
The original tarball weighs in at 86 MiB, occupying 258 MiB when decompressed. Save it somewhere outside the
oca directory. The following will create a
wget -o - http://deb.debian.org/debian/pool/main/o/openclipart/openclipart_0.18+dfsg.orig.tar.gz | tar xzf - cd openclipart-0.18+dfsg/clipart/ pwd # Note the directory [CLIPART_DIR], we'll need it later.
Move outside [CLIPART_DIR] and proceed with the installation.
git clone https://github.com/millette/oca.git cd oca npm install ln -s [CLIPART_DIR] # From the `openclipart` requirement above. ln -s ../README.md pages/readme.md # Link readme page. node scripts/index # 2 minutes to generate `metadata.json` file.
At this point, your directory should look like this:
npm run dev
Point your browser at http://localhost:3000/ and edit files in
pages/ and see them live-reload.
CTRL-C when you're done and want to generate a production build.
You'll need a production build at some point. First, make sure
dev mode isn't running.
npm run build
This will generate a complete site instance with improved performance over the dev build.
Once you have a production build, you can start it with:
npm run start
Point your browser at http://localhost:3000/ and voilà, a production build! You can now proxy with through Nginx, Apache http, Caddy or your preferred web server and you're in business.
Find out more about the project at our about page.
AGPL-v3 2019 © Robin Millette.
Public domain 2005 by various creators.