Skip to content

NextJS Application

Generate a new NextJS application that is ready to use for the Flowcore Platform built using the Flowcore IDD approach

Generate a new Application

To generate a new Flowcore NextJS application, run the following command:

Terminal window
flowcore new nextjs-app <app-name>

this will scaffold a new NextJS application that is built using the Flowcore IDD approach and ready to use for the Flowcore Platform.

File Structure

The generated application is based on the T3 Stack. Below are the files relevant to the Flowcore Platform:

  • flowcore.yaml flowcore manifest file, this is used to define the deployed scenario and its resources
  • flowcore.local.development.yaml flowcore local development configuration file, this is used when streaming locally
  • Directorytranslations
    • en.json english translation file
    • generate-typings.js typings file generator, this is used to generate the typings for the translations
  • README.md
  • Directorysrc
    • Directorycomponents
      • Header.js
  • Directorypages/

Generate a new Entity

To generate a new Flowcore NextJS entity, run the following command:

Terminal window
flowcore generate nextjs-entity <entity-name>

This will add a new entity to the application.

Generate a new Bun service

To generate a new Bun service, run the following command:

Terminal window
flowcore new bun-service <service-name>

Information

This will generate a new directory with the name of the service. Inside the service directory, you will find a new Bun application that is ready to use for the Flowcore Platform.

Generate a new Template Generator written using Bun

To generate a new Template Generator written in Bun, run the following command:

Terminal window
flowcore new generator <generator-name>

Information

This will generate a new directory with the name of the generator. Inside the generator directory, you will find a new Yeoman generator that can be written in Bun.

Generate a new Oclif Plugin for the Flowcore CLI

To generate a new Oclif Plugin for the Flowcore CLI, run the following command:

Terminal window
flowcore new plugin <plugin-name>

Information

This will generate a new directory with the name of the plugin. Inside the plugin directory, you will find a new Oclif plugin that can be used to extend the Flowcore CLI.