CLI
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
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
Create a New Project Use the
dartstream initcommand to initialize a new project. For example:dartstream init my-app
Navigate Inside the Project Folder Once the project is created, navigate into the project directory to begin configuring and developing:
cd my-app
Initialize the CLI
Run the
ds initcommand to configure the project details and establish the context for subsequent steps:ds initYou will be prompted to provide initial details:
mathematicaCopy codeEnter Project Name: Select Version: 1. Open-Source Version (Stable) 2. Open-Source Version (Beta)
Select Project Type
Specify whether you are starting a new project or importing an existing one. This helps load the appropriate configurations:
Select Framework
Choose the frontend framework or platform for your project, as it impacts other configurations:
Choose Authentication SDK
Based on your framework and cloud vendor, select an appropriate authentication option:
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:
Choose Middleware
Select middleware for request handling and additional functionality:
Preview & Confirm Setup
Review your configuration choices and confirm before proceeding to code generation:
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