- Node.js 18.16.0 or higher
- Yarn 1.22.19 or higher
Note
You can install Yarn using npm by running npm install -g yarn.
Important
Make sure you run all commands in an admin shell.
Use the Nocobase CLI:
yarn create nocobase-app <project_name> -d sqliteThis will create a new Nocobase project in the <project_name> directory with SQLite as the database.
Change directory to the project:
cd <project_name>Install the sqlite driver explicitly in the workspace:
yarn add sqlite3 -Wyarn nocobase installThis will install all dependencies and prepare the Nocobase instance.
yarn devNote
The Nocobase instance will be accessible at http://localhost:13000. The default username and password are admin@nocobase.com and admin123.
mkdir -p packages/plugins/@wonder
cd packages/plugins/@wondergit clone https://github.com/wonder/plugin-hello.gitMove to the root directory of the Nocobase project:
cd <project_name>Important
Make sure your Nocobase instance is running before installing and upgrading!
yarn installyarn nocobase upgradeRestart the Nocobase instance:
yarn devYour plugin should now be available to enable in the Nocobase UI under /admin/pm/list/local/.
Note
If you cloned the Nocobase source code, execute yarn build in the root directory for a full build.
In the root directory of the plugin, run:
yarn build @<scope>/<plugin_name> --tarThe tarball will be created at storage/tar/@<scope>/<plugin_name>.tar.gz.
For more information, see Nocobase documentation on how to build and install plugins.
By contributing to this project, you agree that your contributions will be licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).