The previous pege: Step 2 Core, modules and application
For all further commands, run the command prompt as an administrator.
Go to the folder of the application - cd c:\workspace\framework
and set the NODE_PATH
environment variable equals to the path to the application.
For Windows the command is set NODE_PATH=c:\workspace\dnt
, for Linux - export NODE_PATH=/workspace/dnt
. workspace
is the app directory.
Building the application includes the installation of all libraries, import of all data to the DB and preparation to launch the app.
-
The command -
npm install
installs all key dependencies, including locally thegulp
build-tool. Please make sure that theGulp
version - is4.0
. The command above also installs all libraries from thedependencies
property in thepackage.json
file. -
Further, write the
gulp assemble
command to build the app.
NB: Please make sure that the NODE_PATH
environment variable is set, the MongoDB
is open, the Gulp
is installed globally and locally and its version is 4.0
.
- Before launching the app add a new user. Open
Mongo Compass
and find theino-user
table to delete all entries. Further, returne to the console and run the following command.
node bin/adduser.js --name admin --pwd 123
- adds a new admin user with the password 123.
node bin/acl.js --u admin@local --role admin --p full
- adds right to the user.
When building is over you can run the app. Please make sure that the NODE_PATH
environment variable is set. Without it, the system will display an error that some components are missing.
The npm start
command starts the system. The alternative is node bin/www
command.
When you'll see the message that you're running the system on port 8888
, you can open the browser and type the system adress - http://localhost:8888
.
The next page: System description - schema of the main types of metadata
Copyright (c) 2018 LLC "ION DV".
All rights reserved.