How to Build a blog with Astro, Strapi, & Tailwind CSS

Hello,

I am getting having trouble connecting Strapi to Astro.
Please note that I am new to Strapi and any help is appreciated.

In my main project folder have Strapi in a /backend folder and Astro in my /frontend folder

The error message is fetch failed

{
  "code": "ECONNREFUSED"
}

In my astro env file i changed “localhost:1337” to my IP, but I get the same error .

STRAPI_URL=http://127.0.0.1:1337

maybe I am missing some other essential files that will login and connect to strapi?

Thank you for any replies.