Skip to content

testdrivenio/fastapi-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developing a Single Page App with FastAPI and React

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Run the server-side FastAPI app in one terminal window:

    $ cd backend
    $ python3.9 -m venv env
    $ source env/bin/activate
    (env)$ pip install -r requirements.txt
    (env)$ python main.py

    Navigate to http://localhost:8000

  3. Run the client-side React app in a different terminal window:

    $ cd frontend
    $ npm install
    $ npm run start

    Navigate to http://localhost:3000