* Start the application with the rootFolder. * * @param rootFolder
(rootFolder: string)
| 36 | * @param rootFolder |
| 37 | */ |
| 38 | async start(rootFolder: string) { |
| 39 | dotenv.config(); |
| 40 | |
| 41 | try { |
| 42 | APIService.setInsance(rootFolder); |
| 43 | await this.loadGeneralConfiguration(); |
| 44 | await this.bindDependencies(); |
| 45 | await this.analyzeVersions(); |
| 46 | await this.listen(); |
| 47 | } catch (error: any) { |
| 48 | if (error.type === "AxeError") { |
| 49 | LogService.error(error); |
| 50 | } else { |
| 51 | throw error; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | private async bindDependencies() { |
| 57 | const api = APIService.getInstance(); |
no test coverage detected