Skip to main content

Getting Started

Ready to deploy your first app? Check out this guide to learn how to get your app running on ConnectDev in seconds. From there you can explore the different runtime environments supported by ConnectDev.

Create a Project

Create an App

If you haven’t created an app on the dashboard.

Use CLI:connectdev

Please first install the latest CLI by following CLI Installation Guide, then log in to your account by following CLI Log In.

The easiest way to start a new project is to use our boilerplate.

Once you have your app created, create a new project by running connectdev new:

 % connectdev new my-app
Please select an app template:
1. Python - Flask
2. Go - Echo
Enter the number of your choice (q to quit):: 1
You selected: Python - Flask
Please select an app:
1. SubDomain
2. domain
3. button
4. Chaser
5. Engineering
6. connectdev
Enter the number of your choice (q to quit):: 1
You selected: SubDomain
Creating project...
Created Python - Flask project in `.`
Flask's documentation at https://flask.palletsprojects.com

It will create a directory with the name you provided. We can now run cd my-app and install the dependencies:

pip install -Ur requirements.txt

Binding a Project

To associate an existing project to a ConnectDev application, you can use the connectdev link

 % connectdev link          
Current app: SubDomain
Please select an app:
1. SubDomain
2. domain
3. button
4. Chaser
5. Engineering
6. connectdev
Enter the number of your choice (q to quit):: 2
Switching to app: domain ...

Run and Debug Locally

With all the dependencies correctly installed, run the project locally by running the CLI under the project’s root directory:

$ connectdev start

Deploy to ConnectDev

Run the following command to deploy your project:

connectdev deploy 

Projects deployed can only be accessed with domains configured. You can get common domain by going to Console > Apps > Application Detail > Domain.

For example, you can access demo app on https://r2feinjg.connectdev.io.