Metadata-Version: 2.1
Name: create-reactpy-app
Version: 1.0.0
Summary: 
License: GPL-3.0
Author: Minura Punchihewa
Author-email: minurapunchihewa17@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: cookiecutter (>=2.6.0,<3.0.0)
Requires-Dist: pydantic-settings (>=2.2.1,<3.0.0)
Description-Content-Type: text/markdown

# Create ReactPy App

Copyright © 2024 Minura Punchihewa

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

## Quick Overview

```bash
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:

```bash
pip install create-reactpy-app
```

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

2. Create a new project:

```bash
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.

3. Change directory to your new project:

```bash
cd my-app
```

4. Install the dependencies:

```bash
make install
```

Or

```bash
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.

5. Start the server:

```bash
make run
```

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

- FastAPI or Starlette:

```bash
uvicorn main:app
```

- Flask:

```bash
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.

