Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.35 KB

README.md

File metadata and controls

76 lines (51 loc) · 1.35 KB

Strapi plugin audit log

Plugin is inspired by this article

installation

yarn strapi install audit-log

setup

You have to enable plugin in your middleware config

// config/middleware.js
module.exports = {
  settings: {
    pluginAuditLogTrails: {
      enabled: true
    },
  },
}

development

setup new custom strapi instance

official docs

yarn create strapi-app audit-log-plugin-test --quickstart

cd audit-log-plugin-test

# creat sym link for clonned plugin repo:

yarn dev --watch-admin
  1. Clone repo

  2. Create symlink for custom strapi-plugin-audit-log

# MacOS
ln -s {{ROOT_PATH}}/strapi-plugin-audit-log {{ROOT_PATH}}/audit-log-plugin-test/plugins/audit-log
rem Windows
New-Item -ItemType SymbolicLink -Name .\examples\getstarted\plugins\menu -Target .\packages\strapi-plugin-menu\
  1. 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

windows troubleshooting

set HOST env variable for localhost

HOST=127.0.0.0