Skip to content
/ starters Public

Example Space apps to help you get started with Space.

License

Notifications You must be signed in to change notification settings

deta/starters

Repository files navigation

Starter Space Apps

This repository contains a collection of example Space apps to help you get started with Space.

Quick Start

  1. If you don't already have a Space account, create one for free here.

  2. Install the Space CLI and link your Space account to the CLI. Instructions to do that can be found here.

  3. Clone this repository and navigate to an example app directory.

    git clone https://github.com/deta/starters
    cd starters/python-app
  4. Create a new builder project on Space.

    space new
  5. Push your project to Space and create a development instance.

    space push
  6. A development instance of your app is now live on Space! Find it in the Builder and use it to test your app.

Important: running space new will create a .space directory inside your project. This directory contains sensitive information about your app and is used by the Space CLI to push your app to Space. Do not change the name of the directory, include it in any version control software, or add it to repositories.

Project Structure

Every Space project must have a Spacefile. This is the configuration file used by Space to build and deploy your app. Upon initializing your project, the Space CLI will automatically scan your project and generate a Spacefile.

Besides the Spacefile, your project needs to contain some code or assets to be deployed, depending on the type of app you are building.

Your project can also include a Discovery.md file which will be used to generate a Discovery page if you choose to release and list your app.

Deploying your Space App

Run the space push command to upload your code to Space, and the build pipeline will start packaging your app. Once packaging is complete, you will see your app's development instance in the Builder. You can use this instance to debug and test to make sure your app is ready for use.

Releasing your Space App

When you are ready to release your app , run the space release command. This will create a new release of your app and make it available for other users to install. If you want to make the app visible on Discovery, add the --listed flag to the command. Your app will get its own page that will display the contents of the Discovery.md file.

App List

Contributing

If you want to report a bug, submit a fix, add an app, or otherwise contribute, please read the contributing guidelines.