Reflex Cloud - Fast, secure & scalable hosting. One command to deploy.

Installation

Reflex requires Python 3.8+.

Virtual Environment

We highly recommend creating a virtual environment for your project.

venv is the standard option. conda and poetry are some alternatives.

Install Reflex on your system

Install on macOS/Linux

We will go with venv here.

Prerequisites

macOS (Apple Silicon) users should install Rosetta 2. Run this command:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Create the project directory

Replace my_app_name with your project name. Switch to the new directory.

Setup virtual environment

Install Reflex package

Reflex is available as a pip package.

Initialize the project

The command will return four template options to choose from as shown below.

From here select a template.

Run the App

Run it in development mode:

Your app runs at http://localhost:3000.

Reflex prints logs to the terminal. To increase log verbosity to help with debugging, use the --loglevel flag:

Reflex will hot reload any code changes in real time when running in development mode. Your code edits will show up on http://localhost:3000 automatically.