static async start() {

		async function addFridge(name, min, max) {
			const connection = new MongoDBClient();
			await connection.connect();
			const group = MeasurementGroup({
				"name": name,
				"min_value": min,
				"max_value": max
			});
			return await group.save();
		}

		async function addDefaultFridges() {
			await Promise.all(defaultFridges.map((fridge) => addFridge(fridge.name, fridge.min, fridge.max)));
		}

		this.mongoServer = new MongoDBServer();
		await this.mongoServer.start();
		addDefaultFridges().catch(console.error);
		this.connectionString = this.mongoServer.mongoUri;
		return this.connectionString;
	}
/**
     * Starts the local MongoDB server
     *
     * @return {Promise} A promise that resolves when the server is successfully started
     */
Starts the local MongoDB server
@return {Promise} A promise that resolves when the server is successfully started
Starts the local MongoDB server @return { Promise } A promise that resolves when the server is successfully started
static async start() {
		async function addFridge(name, min, max) {
			const connection = new MongoDBClient();
			await connection.connect();
			const group = MeasurementGroup({
				"name": name,
				"min_value": min,
				"max_value": max
			});
			return await group.save();
		}
		async function addDefaultFridges() {
			await Promise.all(defaultFridges.map((fridge) => addFridge(fridge.name, fridge.min, fridge.max)));
		}
		this.mongoServer = new MongoDBServer();
		await this.mongoServer.start();
		addDefaultFridges().catch(console.error);
		this.connectionString = this.mongoServer.mongoUri;
		return this.connectionString;
	}
static async start ( ) { async function addFridge ( name , min , max ) { const connection = new MongoDBClient ( ) ; await connection . connect ( ) ; const group = MeasurementGroup ( { "name" : name , "min_value" : min , "max_value" : max } ) ; return await group . save ( ) ; } async function addDefaultFridges ( ) { await Promise . all ( defaultFridges . map ( ( fridge ) => addFridge ( fridge . name , fridge . min , fridge . max ) ) ) ; } this . mongoServer = new MongoDBServer ( ) ; await this . mongoServer . start ( ) ; addDefaultFridges ( ) . catch ( console . error ) ; this . connectionString = this . mongoServer . mongoUri ; return this . connectionString ; }
Starts the local MongoDB server
 @return {Promise} A promise that resolves when the server is successfully started
Starts the local MongoDB server @return { Promise } A promise that resolves when the server is successfully started