Dart Stream Developer
  • 👋Dartstream Framework
  • Prologue
    • Release Notes
      • Latest Release Notes
      • All Release Notes
    • Upgrade Guide
    • Contribution Guide
  • Getting Started
    • 😀Installation
    • ✨Our Features
      • Standard
        • CLI
        • Frontend Frameworks
        • Authentication
        • Cloud Storage
        • Database
        • Data Streaming
        • Feature Flags
        • Middleware
      • Enhanced
        • Email Management
        • Payment System Integration
        • Notifications
        • Localization and Internalization
        • Access Control and Security
        • Media Management
        • Search and Filtering
        • Audit Logging and Compliance
        • Analytics and Insights
    • 😀Directory Structure
    • 🦕Deployment
  • Product Guides
    • 📪Making a post
    • 📎Understanding Projects
    • 💡Video Guides
  • Documentation
    • 🛠️Fundamentals
      • 📝The Basics
        • Routing
        • Middleware
        • CSRF Protection
        • Controllers
        • Requests
        • Responses
        • Asset Bundling
        • URL Generation
        • Session
        • Validation
        • Error Handling
        • Logging
      • ℹ️Advanced
        • Broadcasting
        • Cache
        • Events
        • Feature Flags
        • File Storage
          • GCP
          • Amazon S3
          • Microsoft Blob Storage
        • Helpers
        • Http Client
        • Localization
        • Mail
        • Notifications
        • ORM
    • 📦Packages
      • 🧰Tools
      • 🍮Standard
      • 💸Enhanced
      • 💸Experimental
    • 😀SDKS
      • Firebase Admin SDK
      • Amazon Cognito SDK
      • Azure AD SDK
  • API Reference
  • Use Cases
    • 🎨For Designers
    • 🖥️For Developers
      • DartStream Extension Registration System
Powered by GitBook
On this page
  • Project Initialization
  • Getting Started
  1. Getting Started
  2. Our Features
  3. Standard

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

  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 ds create command to initialize a new project. For example:

    ds create my_project

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

    cd my_project

  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:

    Choose your project type:
    1. New Project (from scratch)
    2. Existing Project (import existing setup)
      2a. Existing project previously created with DartStream
      2b. Existing external project - migration to DartStream (vue, flutterweb)

  1. Select Framework

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

    Select your frontend framework:
    1. Dart Web
    2. Flutter Web
    3. Flutter (mobile)
    4. Flutter Desktop
    5. Flutter Games
    6. Vue.js
    7. Svelte

  1. Choose Authentication SDK

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

    mathematicaCopy codeChoose an Authentication SDK:
    1. Firebase Authentication
    2. AWS Cognito (third-party integration)
    3. Azure Active Directory
    4. Skip for now (configure later)

  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:

    Choose a database:
    1. Firebase Firestore
    2. PostgreSQL
    3. MongoDB (extension created by partner on top of DartStream)
    4. NoSQL Database (extension created by partner on top of DartStream)
    5. Skip for now

  1. Choose Middleware

    Select middleware for request handling and additional functionality:

    Choose Middleware:
    1. DartStream Middleware (default)
    2. Shelf Middleware
    3. Custom Middleware (start from scratch OR use a partner extension)

  1. Preview & Confirm Setup

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

    Review your selections:
    - Project Type: New
    - Cloud Vendor: Google Cloud
    - Authentication SDK: Firebase Authentication
    - Middleware: DartStream Middleware
    - Framework: Flutter
    - Database: Firebase Firestore
    - CI/CD: GitHub Actions
    - Custom Tools: Security Tools, Performance Tools
    
    Confirm setup? (y/n)

  1. Generate Code with Examples & Documentation (Optional)

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

    Would you like to include example code and inline documentation? (y/n)

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

    dart run

PreviousStandardNextFrontend Frameworks

Last updated 6 months ago

✨