The previous page: Step 1 Installing the environment
NB: no spaces should be in the path. We recommend you to host the app in the c:\workspace
.
We are going to use the develop-and-test
application as an example.
-
Find the application in the github repository. Type the name of the app -
develop-and-test
in the search box and click the link. -
Go to the file repository on the version branch.
-
Open the
package.json
file to check all the dependencies.
"engines": {
"ion": "3.0.0"
},
"ionModulesDependencies": {
"registry": "3.0.0",
"geomap": "1.5.0",
"portal": "1.4.0",
"report": "2.0.0",
"ionadmin": "2.0.0",
"dashboard": "1.1.0",
"soap": "1.1.2"
},
"ionMetaDependencies": {
"viewlib": "0.9.1"
}
-
engines": "ion": 3.0.0
- core version3.0.0
. -
ionModulesDependencies
- list of modules and its versions. -
ionMetaDependencies
- list of other metadata necessary for the project, the only exception isviewlib
- View Library.
NB: check the version in the package.json
file to switch the tag of the version number.
The core is located in the framework
repository. On the main page, in the box you will see the path of the git repository.
-
Run the command prompt as an administrator.
-
Copy the adress of the repository, go to the workspace folder by the
cd c:\workspace
command and then clone the repository -git clone https://github.com/iondv/framework
. This command creates theframework
folder and clones the repository in it.
-
Go to the module folder by the
cd framework\modules
command. -
For each modules from the
package.json
file in theionModulesDependencies
property - find the module repositoryhttps://github.com/iondv/ION-MODULES
. -
Clone all modules from the
ionModulesDependencies
list -git clone https://github.com/iondv/registry
. -
Go to the folder of the cloned module, and switch the tag of the version number
git checkout tags/v1.27.1
. For example1.27.1
- is the version number of theregistry
module. -
Repeat for all modules.
-
Go to the application folder. If you're in the module folder just write the
cd ..\applications
command. -
Return to the
develop-and-test
repository, copy the path and clone the repository -git clone https://github.com/iondv/develop-and-test
. -
Go to the folder of the cloned application, and switch the tag of the version number
git checkout tags/v1.17.0
. -
Istall the dependencies from the
ionMetaDependencies
list in theapplications
folder, please make sure that you are inside the application folder. Clone the applications from theionModulesDependencies
property. For theviewlib
application -git clone https://github.com/iondv/viewlib
. -
Go to the folder of the cloned application, and switch the tag of the version number
git checkout tags/v0.9.1
. Repeat for all modules. -
The application is assembled.
NB: we recommend you to create a project in IDE, e.g. Visual Studio Code and there create a configuration file.
The configuration file is used to set the main parameters of the application environment.
-
Crate the configuration file
setup
with theini
file extension in theconfig
folder. -
Open the file and paste the following:
auth.denyTop=false
auth.registration=false
auth.exclude[]=/files/**
auth.exclude[]=/images/**
db.uri=mongodb://127.0.0.1:27017/iondv-dnt-db
server.ports[]=8888
module.default=registry
fs.storageRoot=./files
fs.urlBase=/files
The most important parameter is db.uri=mongodb://127.0.0.1:27017/ion-dnt
. It indicates the the DB name used for the application. The DB will be created automatically.
The next page: Step 3 Build, deploy and start of the application
Copyright (c) 2018 LLC "ION DV".
All rights reserved.