I am working on a Nodejs -Hapijs project. This project have a “Make” file to start the
project, but the project will start in docker , I can not debug the API also the project
will start as a whole ( API + UI ) in docker.
I tried to start the API independently but could not do it.
Here is the API file structure , package.json file Image od API folder structure
"scripts": {
"build": "npm run clean && .tsc",
"clean": "rm -rf ./dist",
"lint": "tslint -p ./tsconfig.json -c ./tslint.json",
"lint-serve": "npm run lint & npm run serve",
"serve": "node ./index.js",
"start": "if [[ $NODE_ENV == "production" ]]; then npm run serve; else npm run watch; fi",
"test": "jest --verbose --coverage --detectOpenHandles",
"test:watch": ".jest --verbose --watchAll",
"watch": "tsc-watch --onSuccess "npm run lint-serve""
This is the package.json file (scripts part).This project is written in typescript, I can give you more required details , I am not sure what information I should add other than this .
THINGS I HAVE TRIED
- npm start
Any help