This repository has been archived by the owner on May 10, 2024. It is now read-only.
generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
const { MongoMemoryServer } = require('mongodb-memory-server'); | ||
|
||
|
||
let mongoserver; | ||
let userservice; | ||
let authservice; | ||
let gatewayservice; | ||
|
||
let auth_service; | ||
|
||
async function startServer() { | ||
console.log('Starting MongoDB memory server...'); | ||
mongoserver = await MongoMemoryServer.create(); | ||
const mongoUri = mongoserver.getUri(); | ||
process.env.MONGODB_URI = mongoUri; | ||
userservice = await require("../../users/userservice/user-service"); | ||
authservice = await require("../../users/authservice/auth-service"); | ||
gatewayservice = await require("../../gatewayservice/gateway-service"); | ||
} | ||
console.log('Starting auth memory server...'); | ||
|
||
auth_service = await require("../../auth_service/auth"); | ||
} | ||
|
||
startServer(); | ||
startServer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters