This plugin is a template to help you make your OCWebsite plugin. Fork it, build it, and experiment with it.
- Install the OCWeb repository, and deploy it locally (cf the
InstallationandLocal deploymentsections) - Clone this repository at the same level as the
ocwebfolder (theocweb-plugin-starter-kitandocwebfolders are in the same folder) - In the
ocweb-plugin-starter-kit, run the commands :git submodule init git submodule update --init --recursive npm ci - In the
ocwebfolder, edit.env, and set :This indicates thatOCWEB_PLUGINS_BUILD="ocweb-plugin-starter-kit:true:true"ocweb-plugin-starter-kitneeds to be built, and that it will part of the OCWebsite factory plugin library (true), and that it will be installed by default when minting a new OCWebsite (true) - Rerun
./scripts/deploy.shin theocwebfolder : the plugin will be built, and theexampleOCWebsite will be minted with the plugin installed.
The plugin comes with :
- 2 examples of content serving (via the smart contract itself, or via a proxied OCWebsite in which we upload a static frontend)
- 2 examples of user config storing (in the smart contract, or in a JSON file uploaded to the staticFrontend plugin)
- 2 admin panels to configure these 2 examples of user config.
- Examples of basic functionalities (basic routing, JS
fetch()example)
Plugin development documentation is located here at the OCWeb repo

