安装说明
安装数据库服务器,使用以下命令安装mongoDB
sudo apt-get update; sudo apt install -y mongodb MongoDB will be started automatically once installation is completed.
一旦安装了数据库服务器,请使用以下命令安装NPM
sudo apt-get install npm
一旦安装了数据库服务器,请使用以下命令安装nodejs
sudo apt-get install nodejs
接下来,使用以下命令克隆回购
git clone <a href="https://github.com/formio/formio">https://github.com/formio/formio</a>
克隆完成后,使用以下命令运行服务器
cd formio <br></br> sudo npm install<br></br> npm start
完成后,您将在浏览器中的以下地址运行运行form.io管理应用程序。
<a href="https://github.com/formio/formio">http://</a>localhost:3001
恭喜您有成功的表格
**使用Docker **安装说明
Docker图像位于Docker Hub上,将其拉下来,运行以下Docker命令。
docker pull formio/formio-enterprise
创建一个Docker网络以包含所有Docker实例。
docker network create formio
创建mongo实例。
mkdir ~/opt/mongodb
# Double check permissions on /opt/mongodb
docker run -itd \
--name formio-mongo \
--network formio \
--volume ~/opt/mongodb:/data/db \
--restart unless-stopped \
mongo
启动formio-enterprise实例。
docker run -itd \
-e "ADMIN_EMAIL=<span id="cloakd599c59a1669d71b635ca8704350f38c">This email address is being protected from spambots. You need JavaScript enabled to view it.</span><script type="text/javascript">document.getElementById('cloakd599c59a1669d71b635ca8704350f38c').innerHTML='';var prefix='ma'+'il'+'to';var path='hr'+'ef'+'=';var addyd599c59a1669d71b635ca8704350f38c='admin'+'@';addyd599c59a1669d71b635ca8704350f38c=addyd599c59a1669d71b635ca8704350f38c+'example'+'.'+'com';var addy_textd599c59a1669d71b635ca8704350f38c='admin'+'@'+'example'+'.'+'com';document.getElementById('cloakd599c59a1669d71b635ca8704350f38c').innerHTML+='<a '+path+'\''+prefix+':'+addyd599c59a1669d71b635ca8704350f38c+'\'>'+addy_textd599c59a1669d71b635ca8704350f38c+'<\/a>';</script>" \
-e "ADMIN_PASS=CHANGEME" \
-e "PRIMARY=true" \
-e "LICENSE=YOURLICENSE" \
-e "PORTAL_SECRET=CHANGEME" \
-e "JWT_SECRET=CHANGEME" \
-e "DB_SECRET=CHANGEME" \
--restart unless-stopped \
--name formio-server \
--network formio \
--link formio-mongo:mongo \
--restart unless-stopped \
-p 3000:80 \
formio/formio-enterprise;