title: How can I run the fast-api server using Pycharm?
body: <p>I have a simple API function as below,</p>
  <pre><code>from fastapi import FastAPI
  
  app = FastAPI()
  
  
  @app.get(&quot;/&quot;)
  async def read_root():
      return {&quot;Hello&quot;: &quot;World&quot;}
  </code></pre>
  <p>I am starting the server using <strong><code>uvicorn</code></strong> command as,</p>
  <pre><code>uvicorn main:app
  </code></pre>
  <p>Since we are not calling any python file <em>directly</em>, it is not possible to call <code>uvicorn</code> command from Pycharm.</p>
  <p>So, <strong>How can I run the fast-api server using Pycharm?</strong></p>