Skip to content

Cardano blockchain wallet login for your WordPress website, supporting all major CIP-30 complaint wallets.

License

Notifications You must be signed in to change notification settings

devhalls/cardano-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardano Connect - WordPress Plugin

A WordPress plugin providing Cardano Web3 wallet connections and wallet detection features via short codes and Gutenberg blocks, supporting all CIP-30 compliant wallets.


Built with

Cardano PHP JS TS NodeJS React Composer Wordpress


Development - WordPress Plugin

The root folder contains a .wp-env.json configuration for the development environment and the plugin folder.

We assume you have already installed wp-env using your preferred method or using a global install such as npm -g install @wordpress/env.

You can zip the plugin from the root directory using creating cardano-connect.zip

npm run package

Start the dev server

We use wp-env for the WordPress environment when working locally.

# Start your wp-env environment.
wp-env start

# Cron jobs may not run in local instalations, and can be invoked manually:
wp-env run cli wp cron event run --due-now

WordPress blocks

We use wp-scripts for the WordPress block development. Use these commands to work on the blocks.

# Enter the blocks directory.
cd cardano-connect/blocks

# Install dependencies.
npm install

# Start the wp-scripts enviromnent.
npm run start-connector
npm run start-assets
npm run start-balance
npm run start-pools

# Build blocks. 
npm run build-connector
npm run build-assets
npm run build-balance
npm run build-pools

Development - React

React is used for the frontend Web3 components and development environment. React scripts and css is then included in the plugin using wp_register_scrtips and wp_register_styles as necessary.

React nodes target block and shortcode HTML outputs defined in WordPress allowing us to bind various React nodes to user defined locations across their WordPress website.

# Enter react env
cd cardano-connect/react

# Install dependencies
npm install

# Build output for WordPress to consume
npm run build

# Start the react dev server (no WordPress using mockData).
npm run start

Deployment

Deployments are handled via the WordPress plugin repository. PRs accepted in this repository will be submitted to the WordPress repo by the contributor team.

# Zip files ready for a WordPress instalation
npm run package

License

Distributed under the GPL-3.0 License. See LICENSE.txt for more information.


Contributors


Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this plugin better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

Cardano blockchain wallet login for your WordPress website, supporting all major CIP-30 complaint wallets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published