如上图所示,这是与模块相结合与互动的内核。其中所有的功能应该是必要、极简的,并且也要为了更好地模块化集成提供极可能多的接口。
模块模板在这里。这是一个模板仓库,可以创建用于模块开发的仓库。为了能让您的模块以最好的方式与内核一起工作,请按照其中的README.md
中的准则进行开发。
- 安装python3. 它的版本应该至少为
3.10
。 - 安装firejail。
- 安装npm。
- 安装PM2.
sudo npm install pm2@latest -g
。 - 拷贝
dotenv_template.env
到.env
。填入环境变量。 - 运行
pm2_start.sh
。
As shown above, this is the kernel to interact with modules. All features are meant to be essential, minimal while providing as many ports as possible for greater modularity.
The module template is here. It's a template repository that can create a new repository for module development. Please follow the template guidelines as stated in its README.md
file to make it properly work with the kernel.
- Install python3, whose version is
>=3.10
. - Install firejail.
- Install npm.
- Install PM2.
sudo npm install pm2@latest -g
. - Copy
dotenv_template.env
as.env
. Fill in the environmental variables. - Execute
./pm2_start.sh
.