CLI

circle-info

Features: Open Source, SaaS

DartStream simplifies the process of starting a new project by providing an intuitive, template-driven initialization process. With just a few commands, developers can set up a fully-functional project scaffold tailored to their needs.

Project Initialization

Getting Started

  1. Install DartStream CLI To use DartStream's project templates, ensure you have the DartStream CLI installed. If you haven’t installed it yet, you can do so with the following command:

    dart pub global activate dartstream

NB: command to be changed

  1. Create a New Project Use the dartstream init command to initialize a new project. For example:

    dartstream init my-app

  1. Navigate Inside the Project Folder Once the project is created, navigate into the project directory to begin configuring and developing:

    cd my-app

  1. Initialize the CLI

    Run the ds init command to configure the project details and establish the context for subsequent steps:

    ds init

    You will be prompted to provide initial details:

    mathematicaCopy codeEnter Project Name: 
    Select Version:
    1. Open-Source Version (Stable)
    2. Open-Source Version (Beta)

  1. Select Project Type

    Specify whether you are starting a new project or importing an existing one. This helps load the appropriate configurations:

  1. Select Framework

    Choose the frontend framework or platform for your project, as it impacts other configurations:

  1. Choose Authentication SDK

    Based on your framework and cloud vendor, select an appropriate authentication option:

  1. Choose Database / Data Storage

    Select a database option that fits your project's requirements. You may skip this step if you prefer to configure it later:

  1. Choose Middleware

    Select middleware for request handling and additional functionality:

  1. Preview & Confirm Setup

    Review your configuration choices and confirm before proceeding to code generation:

  1. Generate Code with Examples & Documentation (Optional)

    After confirmation, generate project files and optionally include example code or inline documentation:

    Upon completion, your project is ready to start. Use the following command to launch your server:

Last updated