Skip to main content

No project description provided

Project description

Create ReactPy App

Copyright © 2024 Minura Punchihewa

This is create-react-app for your ReactPy projects!

Quick Overview

create-reactpy-app my-app
cd my-app
make install
make run

Now, open http://localhost:8000 to see your app.

Creating an App

You'll need to have Python 3.8 or later installed on your machine. You can use python --version to check your current version.

  1. First, install the package using pip:
pip install create-reactpy-app

Note: You can either install this globally or in a virtual environment.

  1. Create a new project:
create-reactpy-app my-app

Note: You can specify the backend framework you want to use by passing the --backend flag. The available options are fastapi, starlette and flask. If you don't specify a backend, FastAPI will be used by default.

  1. Change directory to your new project:
cd my-app
  1. Install the dependencies:
make install

Or

pip install -r requirements.txt

Note: If create-reactpy-app was installed in a virtual environment, this does not need to be done on the same environment. You can switch to a different environment and install the dependencies there.

  1. Start the server:
make run

Or, depending on the backend framework you chose, you can run the following commands:

  • FastAPI or Starlette:
uvicorn main:app
  • Flask:
gunicorn main:app

Your app will now be running on http://localhost:8000.

License

This code is licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.txt for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

create_reactpy_app-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

create_reactpy_app-1.0.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file create_reactpy_app-1.0.0.tar.gz.

File metadata

  • Download URL: create_reactpy_app-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/6.5.0-35-generic

File hashes

Hashes for create_reactpy_app-1.0.0.tar.gz
Algorithm Hash digest
SHA256 451e335ed5bd5f342304dc663ef86af499fcdcb70c45f30612be81b87cbc9cfe
MD5 837aabbc58b09f35ac60d4fa0a6f35ca
BLAKE2b-256 4dc5a701ee471af9c4bf1f7270f49a34d3d7c878b496469b2916fbfacb51bfdf

See more details on using hashes here.

File details

Details for the file create_reactpy_app-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for create_reactpy_app-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c8cfccb5738953bc6ff4149f956da947a97767e2ca07c1b53a7ac79ace6dc9e
MD5 7cb7372f1903598acc5b4a6cdf250bb9
BLAKE2b-256 29d9d901921b591206276204d6e5ffdd840ee03384a0098b761818134dddc01e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page