How to run Anvil locally?

What I’m trying to do:

Connect to an API running locally.

What I’ve tried and what’s not working:

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

Clone link:
share a copy of your app

What do you mean run an API locally? For anyone to answer your question, we need more details. Please follow the question format that autofills when you start the question and refer to how to ask a good question.

2 Likes

I want to send requests to an API that is in development and is not available on the Internet.

You can run Anvil locally by setting up a local server and using the open source runtime.

I strongly advice you against that. It’s much easier to create your endpoints and test them on a test url.

You can have the same app with the same endpoints available on different urls for development and production versions.