MCPcopy Create free account
hub / github.com/axe-api/axe-api / start

Method start

packages/axe-api/src/Server.ts:38–54  ·  view source on GitHub ↗

* Start the application with the rootFolder. * * @param rootFolder

(rootFolder: string)

Source from the content-addressed store, hash-verified

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();

Callers 2

index.tsFile · 0.80
index.tsFile · 0.80

Calls 7

bindDependenciesMethod · 0.95
analyzeVersionsMethod · 0.95
listenMethod · 0.95
configMethod · 0.80
setInsanceMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected