# cra-template-electron-python-fastapi

> The Electron Python FastAPI template for Create React App.

Latest version **1.0.1** (published 2021-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install cra-template-electron-python-fastapi
pnpm add cra-template-electron-python-fastapi
yarn add cra-template-electron-python-fastapi
bun add cra-template-electron-python-fastapi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-05-09 |
| First published | 2021-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 45.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | jlkp001 |
| Keywords | react, create-react-app, template, electron, builder, python, fastapi |

## Links

- npm: https://www.npmjs.com/package/cra-template-electron-python-fastapi
- Repository: https://github.com/JLKP001/cra-template-electron
- Homepage: https://github.com/JLKP001/cra-template-electron#readme
- Issues: https://github.com/JLKP001/cra-template-electron/issues
- npm.io page: https://npm.io/package/cra-template-electron-python-fastapi

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-05-09
- 1.0.0 — 2021-05-09

## README

# cra-template-electron-python-fastapi

This is a create-react-app (CRA) template for Electron-Python applications based on the [official base template for Create React App](https://github.com/facebook/create-react-app/tree/master/packages/cra-template).

## Getting Started

Note that Python >3.6 is required for development.

To create a React-Electron-Python application and run it in dev mode, run:

```
npx create-react-app my-app --template electron-python-fastapi
cd my-app
python -m pip install virtualenv
python -m virtualenv venv
.\venv\Scripts\activate
python -m pip install -r requirements.txt
npm start
```

These commands will do the following:

1. Create a React-Electron-Python application called `my-app` using the CRA [electron-python-fastapi](https://www.npmjs.com/package/cra-template-electron-python-fastapi) template.
2. Change the current directory to `my-app`
3. Launch the application in dev mode, with hot reloading and the Developer tools console installed with [React DevTools extension](https://github.com/facebook/react/tree/master/packages/react-devtools-extensions)

For more information on how to use CRA, see the [Create React App docs](https://reactjs.org/docs/create-a-new-react-app.html#create-react-app).

## Distribution

This template uses [electron-builder](https://www.electron.build/) to package and build a ready for distribution application for Windows, macOS and Linux.

To build the application, run:

```
npm run dist:win
npm run dist:mac
npm run dist:linux
```

These commands will generate distributables for Windows, macOS and Linux respectively.
By default, the distributables will be in NSIS (Windows), dmg (macOS) and deb (linux) form.

_Remember to change the author, description, build.appId and build.productName in `package.json` before creating a distributable_

## React-Electron

For creating an application with only React and Electron, use the CRA [electron-builder](https://www.npmjs.com/package/cra-template-electron-builder) template.

```
npx create-react-app my-app --template electron-builder
cd my-app
npm start
```

---
_Source: https://npm.io/package/cra-template-electron-python-fastapi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
