Used for local parsing of Log file data generated by Uipath
Tips: The project uses Yarn 3.3 > How to update yarn to version 3
$ yarn set version stable
# Run front-end project
# current path: **/*/uipath-logs-analyzer/
$ cd app
# install all deps
$ yarn
# Bootstrap
$ yarn dev
Modify server configuration files
server.config.json
Tips: Windows path requires escape characters Windows Path(C:\Users) --> json file(C:\\Users)
{
"UIPATH_LOGS_FOLDER_PATH": "C:\\Users\\example\\AppData\\Localogs",
"CLIENT_PORT": "4301",
"SERVER_PORT": "4302"
}
- Configuration parameter description
UIPATH_LOGS_FOLDER_PATH
: Uipath log file root pathCLIENT_PORT
: The port that provides the web serviceSERVER_PORT
: The port that provides the backend service
# Run back-end project
# Tips: current path: **/*/uipath-logs-analyzer/
$ cd server
# Install all deps
$ yarn
# Bootstrap
$ yarn watch:server
# current path: **/*/uipath-logs-analyzer/app/
$ yarn build
# copy front-end dist to back-end src/public/
$ cp dist/* ../server/src/public/
# current path: **/*/uipath-logs-analyzer/server/
# build back-end project, for ts->js
$ yarn run build
# Install pkg globally
$ yarn global add pkg
# use pkg build to create *.exe file
$ yarn run build:pkg