Skip to content

jordaneremieff/starlette-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

starlette-react

A basic example of using a React application with Starlette.

Setup

Backend

Requirements: Python 3.6+

  • Install starlette and uvicorn from the requirements file in the backend directory:

    pip install -r requirements.txt --upgrade

  • Run the application using uvicorn:

    python app.py

Uvicorn is the ASGI server used to run the application in this example, however other ASGI servers, such as Hypercorn and Daphne could be used as well.

Frontend

The React app was initially created using the create-react-app command.

  • Install the dependencies:

    yarn install

  • Run the server:

    yarn start

About

An example React app using a Starlette backend

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published