https://github.com/likecoin/likecoin-wordpress
The WordPress plugin to integrate LikeCoin - Decentralized Publishing Infrastructure.
https://github.com/likecoin/likecoin-wordpress
arweave blockchain ipfs likechain likecoin wordpress wordpress-plugin
Last synced: 4 months ago
JSON representation
The WordPress plugin to integrate LikeCoin - Decentralized Publishing Infrastructure.
- Host: GitHub
- URL: https://github.com/likecoin/likecoin-wordpress
- Owner: likecoin
- License: gpl-3.0
- Created: 2018-07-05T05:43:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T00:25:41.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T06:11:18.371Z (11 months ago)
- Topics: arweave, blockchain, ipfs, likechain, likecoin, wordpress, wordpress-plugin
- Language: JavaScript
- Homepage: https://wordpress.org/plugins/likecoin/
- Size: 14 MB
- Stars: 20
- Watchers: 9
- Forks: 16
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Web3Press WordPress Plugin By LikeCoin
[](https://wordpress.org/plugins/likecoin/)
[](https://wordpress.org/plugins/likecoin/)
[](https://wordpress.org/plugins/likecoin/)
[](https://wordpress.org/plugins/likecoin/)
[](https://circleci.com/gh/likecoin/likecoin-wordpress)
[](https://greenkeeper.io/)
## Important Migration Notice
**This plugin is transitioning from liker.land to 3ook.com** - the next evolution of decentralized bookstore technology.
### What's Changing:
- **Read-Only State**: The plugin will enter read-only mode during the migration preparation
- **No More NFT Publishing**: All publish to ISCN and NFT functions have been removed
- **Widget Migration**: LikeCoin buttons and NFT widgets will migrate to 3ook.com widgets
- **New Features**: Display book collections from 3ook.com or recommend specific books
### What Still Works:
- Control display settings for LikeCoin buttons and NFT widgets
- Update ISCN ID and Arweave ID for posts
- Assign Liker ID to site or post (will be removed in next version)
- Internet Archive integration and payment pointer functions
### About 3ook.com:
3ook.com is a decentralized bookstore running on EVM blockchain - the next evolution of liker.land. Like its predecessor, it focuses on empowering creators and building decentralized communities around content.
## Development Setup
The suggested way of development environment is docker based. This guide will
assume you have Docker Community Edition 18+ installed. Please download at
[https://store.docker.com](https://store.docker.com) and follow the
installation instruction.
``` bash
# Build the docker images, run it for the first time or you have dependency updates
docker-compose build
# Run the dev env
docker-compose up
# Install nodejs dependencies
# npm install
```
## JavaScript Development
Auto rebuild script in dev mode. Only one javascript component can be run at a time.
``` bash
# DePub metabox for classic editor
npm run dev:admin:metabox
# LikeCoin plugin admin setting pages
npm run dev:admin:settings
# DePub Editor sidebar for Gutenberg
npm run dev:sidebar
```
## Lint
TODO: we are running these command in host, should switch to docker-based test command
Run PHP sniffer for PHP lint
``` bash
# Install composer if not exists
# brew install composer
# Install dependencies
composer install
# Install WordPress PHP Coding standard
cd vendors
git clone -b master https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git ./wpcs
./bin/phpcs --config-set installed_paths `pwd`/wpcs
cd ..
# Run phpcs
./vendor/bin/phpcs likecoin --standard=WordPress --extensions=php
# or, run phpcbf for autofix
./vendor/bin/phpcbf likecoin --standard=WordPress --extensions=php
```
Run Eslint and Stylelint for javascript lint
``` bash
# run eslint and stylelint
npm run lint
```
## Production
Javascript files need to be transpile using wp-script
``` bash
# Run wp-script/webpack
npm run build
```