helsingborg-stad/gdi-modularity-my-pages-about-me

关于我模块

1.0.5 2024-09-10 11:45 UTC

README

模块化模块,允许认证用户管理联系详情。这是一个作为模块化的WordPress插件的React应用程序。

入门指南

# clone repo into wp-content/plugins folder
git clone https://github.com/helsingborg-stad/gdi-modularity-my-pages-about-me.git

# install composer dependencies
composer install

# install npm dependencies
yarn

# build scripts
yarn build

# watch scripts (for development)
yarn watch

# activate wordpress plugin (using wp-cli)
wp plugin activate gdi-modularity-my-pages-about-me --url=example.local

# configure api endpoint (using wp-cli)
wp option update options_about_me_api_uri http://localhost:3000/api/v1/aboutme --url=example.local

入门指南(无WordPress的Headless模式)

此插件可以在没有WordPress的情况下运行(用于开发)。

# install dependencies
yarn

# copy example env 
cp .env.example .env

# start web server
yarn start