Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
754 B

import local from "./datastores/local";
import azureBlob from "./datastores/azure-blob";
import memory from "./datastores/memory";
import getConfig from "./config";
import tests from "./tests";
const initialise = async () => {
const type = process.argv[2];
const config = (await getConfig())[type];
switch (type) {
case "local":
return {datastore:local(config.root), config};
case "memory":
return {datastore:memory(config), config};
case "azure":
return {datastore:azureBlob(config), config};
default:
break;
}
}
initialise()
.then(init => {
return tests(init.datastore, init.config);
})
.then(_ => console.log("done"))
.catch(e => console.log(e));