Skip to content

SAG-SAS/faf-imageviewer-block

Repository files navigation

OpenSeadragon image viewer block for WordPress

Local Development

First setup

On first setup, run npm i to install any needed npm modules for this WordPress block plugin.

Note, this plugins uses wp-env to spin up a local WordPress instance for development, this requires that you have docker installed locally.

Continued developement

Run

npm run start

in one terminal from the root folder of this repository and

sudo npm -g i @wordpress/env
wp-env start

in another terminal session, also from the plugin root directory.

This will start up WordPress with the plugin installed on your local system on port 8888. To login use user admin and password password.

For rootless docker, also execute

docker exec -it <docker-id>-wordpress-1 chmod 777 -R /var/www/html

to ensure proper permissions on the directory inside the container

For umask 077

In case you are using something like umask 077 to enhance security on your pc, you need to update the permissions of the npm WordPress package:

sudo chmod -R 755 /usr/lib/node_modules/@wordpress

About

A wordpress block using the openseadragon image viewer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors