need
Use an example to quickly experience the use of bpmn-js. This series of topics uses the popular vue3 project for demonstration, which is more conducive to project development, and it is helpful for reference when encountering problems.
engineering construction
prerequisite
1. Install vscode
2. Install node js, the version is not too old, my local node -v (v16.18.1), npm -v (8.19.2), configure the taobao mirror address.
3. Familiar with front-end npm technology, understand vue, and install vue well.
The above prerequisites can refer to https://www.cnblogs.com/fuct/p/17010973.html
build steps
Create a project using the vue-cli command
vue create bpmn-js-learn
Select Default(Vue3), press Enter
After completion, run the following command and access is normal
$ cd bpmn-js-learn
$ npm run serve