Smartr. AI Docs
  • Introduction
  • Get Started
  • Environment Setup
    • Essentials
    • Set up your Smartr. Gateway
    • Connect to your Smartr. Gateway
    • Configure your SQL Server Instance
  • Create Your First App
    • Create a Workspace
    • Create an Instant App
Powered by GitBook
On this page
  • Steps to create a project
  • What's Next
  1. Create Your First App

Create an Instant App

PreviousCreate a Workspace

Last updated 6 months ago

Steps to create a project


1

Ensure You Are in a Workspace:

  • To create a project, you must be inside a workspace. If you just created a workspace, you should be automatically directed to its details page.

  • Alternatively, navigate to the "My Workspaces" tab at the top of the page and select the workspace where you want to create the project.

2

Add a New Project:

  • Once inside the workspace, click on "Add Project".

  • You will be presented with two options for project creation:

    • Blank Project: A minimal setup without a generated codebase, ideal for custom configurations.

    • Instant App: Generates a ready-to-use codebase, perfect for quickly starting your development with Smartr’s predefined setup.

3

Instant App Generation: For this guide, we will focus on the Instant App option, which provides a streamlined path to generating a codebase.

  • Enter Project Name: Provide a unique name for your project that reflects its purpose. Click "Proceed" to continue.

  • Database Settings: Choose your preferred method for connecting to the database:

    • Full Connection String: Enter the entire database connection string and click "Test" to verify the connection.

    • Manual Configuration: Specify the following:

      • Database Type: Select SQLSERVER.

      • Host: Enter the server name

        • If you have local SQL: host.docker.internal

        • If you dockirized the SQL in the Previous step: smartr-sql

      • Port: Optional; defaults to 1433 if not specified.

      • Database Name: The name of the database you intend to use.

      • User: The username for database access. (sa)

      • Password: The password for the specified user.

      • Click "Test" to ensure the connection is valid.

  • Click "Proceed" once the connection is verified.

If the connection is successful, the connection status logo will turn green, indicating that the database connection is valid.

  • Configure Directories: Define the directories where your project files will be stored.

    • Project Parent Directory: Specify the location for generated project files.

    • Patch History Directory: Optionally, provide a path for patch history or keep the default ([project_name]_history under the parent directory).

    • Auto Apply Patch: Choose whether to automatically apply patches to your database. Enable this if you want patches applied without manual intervention.

  • Click "Proceed" to move forward.

  • Generate the Codebase: Review the project settings, then click "Generate". The Smartr engine will generate your codebase based on the provided configuration.

Once the generation process is complete, the code will be available in the specified directory.

When entering the server name during the database configuration, always start with host.docker.internal if you are using local SQL and smartr-sql if you are using the dockerized SQL . This is essential when using Docker because it allows the Smartr gateway running in a container to resolve the host machine’s address correctly. Without this, the database might be unreachable from the container, leading to connection errors.

What's Next


With your project successfully created, you can delve deeper into Smartr's features, codebase architecture, and learn how to add customizations.

Did You Know?

You can also use Smartr's AI assistant, Diivo, to create your Instant App quickly.

Visit for step-by-step guidance on how to use Diivo for this process.

Build with Diivo