My First Feature » ForrestJS App's Scaffold

My First Feature » ForrestJS App Scaffold


ForrestJS App's Scaffold

Create a new index.js file and use the following scaffold to kick off a new ForrestJS App:

const forrest = require('@forrestjs/core');

forrest
  // Kick off the asynchronous Boot Lifecycle
  .run({
    trace: 'compact',
    settings: {},
    services: [],
    features: [],
  })
  // Log any boot error
  .catch(console.error);

Once ready, you can run it with:

npx nodemon index

💻 Live on CodeSandbox:
https://codesandbox.io/s/010-forrestjs-app-scaffold-23g6w?file=/src/index.js


results matching ""

    No results matching ""