Tutorial: Platform.startFromManifest

Platform.startFromManifest

Retrieves platforms's manifest and returns a wrapped and running platform. If there is a snapshot in the manifest, it will be launched into the platform.

Example

try {
    const platform = await fin.Platform.startFromManifest('http://localhost:5555/app.json');
    console.log(`platform is running, wrapped platform: ${platform}`));
} catch(e) {
    console.error(e);
}
// For a local manifest file:
try {
    const platform = await fin.Platform.startFromManifest('file:///C:/somefolder/app.json');
    console.log(`platform is running, wrapped platform: ${platform}`));
} catch(e) {
    console.error(e);
}