Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

andrewha/fastapidemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a demo web app that can solve quadratic $ax^2+bx+c=0$ (or linear, if $a=0$) equations. It serves both GET and POST methods. The app is a one page app, where you can fill the form with the coefficients $a, b, c$ of your polynomial and send a POST request, and then the server will send a response with the found roots back to the same page. The app also plots a graph of your polynomial and shows the roots, if any.

To run the app:

  • pip install -r requirements.txt
  • uvicorn main:app
  • (optionally) run python tester.py to manually send GET requests

The app is running here (it may take some time to start up, please be patient).

Sample solution is shown below.

About

Demo web app developed with FastAPI

Resources

License

Stars

Watchers

Forks

Contributors