- cp .env.example .env
- create DB mentioned in .env
- npm install
- npx sequelize-cli db:migrate
- setup Runtime node MYSQL operational db connection
- ssh to your Runtime node server
- expose port 3306 on your server to your local IP address (firewall)
- enable MySQL remote connection by changing the bind-address from 127.0.0.0 to 0.0.0.0 in /etc/mysql/mysql.conf.d/mysqld.cnf
- restart mysql.service with "systemctl restart mysql.service"
- create new MYSQL user for API service
- mysql -u root -p
- When asked for password, use the password you created during the node setup process
- Create user for remote access:
CREATE USER'username'@'%' IDENTIFIED BY'your_password'; - GRANT ALL PRIVILEGES ON*.*TO'username'@'%'WITH GRANT OPTION;
- FLUSH PRIVILEGES;
- update Edge node API .env with mysql connection details
- make sure redis is running on it's default port 6379
- npm run start
- Edge node Knowledge mining - app is being used for input file processing and creating Knowledge asset content
- Edge node Authentication service - app is being used as middleware for every API request to Edge node backend - session/cookie is being validated. Also, app contains all important Edge node config params like Knowledge mining endpoint, DRAG endpoint, KMining pipeline id etc
App will be exposed on http://localhost:3002
NOTE: All Edge node backend settings parameters are set in Edge node auth service app DB and this app will not work if Auth service is not running and properly set.