CLI
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:
NB: command to be changed
Create a New Project Use the
ds create
command to initialize a new project. For example:
Navigate Inside the Project Folder Once the project is created, navigate into the project directory to begin configuring and developing:
Initialize the CLI
Run the
ds init
command to configure the project details and establish the context for subsequent steps:You will be prompted to provide initial details:
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