yarn strapi install acoustic-newsletters
yarn add acoustic-newsletters
yarn build
# pay attention
copy components_copy_dependency to the root of your project
create /config/acousticNewsletters.js
and setup url for the newsletter backend like:
module.exports = ({ env }) => ({
// TODO: implement env variable
url: 'https://clevercmssit.creditas.cleverlance.com/capi/newsletter'jj
});
these config is served vai HTTP endpoint to the frontend of the plugin
issue: strapi/strapi#7640
now you have to go to the /components_copy_dependency
and move its content into root of your project to the /components
folder
for correct database definition
yarn create strapi-app acoustic-newsletters-plugin-test --quickstart
cd acoustic-newsletters-plugin-test
# create a sym-link for cloned plugin repo:
yarn dev --watch-admin
-
Clone repo
-
Create symlink for custom
strapi-plugin-acoustic-newsletters
# MacOS
ln -s {{ROOT_PATH}}/strapi-plugin-acoustic-newsletters {{ROOT_PATH}}/test-plugins/plugins/acoustic-newsletters
rem Windows
New-Item -ItemType SymbolicLink -Name .\examples\getstarted\plugins\menu -Target .\packages\strapi-plugin-menu\
- Code installation/setup
# cd {{ROOT_PATH}}/
# cd {{ROOT_PATH}}/examples/getstarted
yarn build
yarn dev # its alias for `yarn develop --watch-admin`
# open URLs:
> http://localhost:8000/admin
> http://127.0.0.1:1337/documentation/v1.0.0
> http://localhost:1337/graphql
set HOST
env variable for localhost
HOST=127.0.0.0