Skip to main content

Command Palette

Search for a command to run...

Web app deployment easy with anvil

Updated
β€’3 min read
Web app deployment easy with anvil
A

Hi, i am a post graduate (MCA) student and a open source contributor.

1. What is anvil platform πŸ™„

5555.PNG

Anvil is a platform for building full-stack web apps entirely in Python. It makes it easy to build and deploy full-stack machine learning apps. It is easy-to-use and open-source. We will use the framework for this build.

Deployment is not a easy task without a great tool right πŸ€”, I face this deployment problem in my machine learning project. The rough idea behind anvil is mention below

IMG20220922100959.jpg

Also we can run onsite network by using private onsite anvil installation in same way.

IMG20220922101520.jpg

The anvil server basically give the output to the executable machine learning model in jupyter notebook and predict this output with high accuracy according to the model and send the information to the anvil server. Finally we can get the result and display on anvil UI.

2. Why anvil πŸ’πŸ»β€β™‚οΈπŸ’πŸ»β€β™€οΈ

7845.PNG

3. How deployment works here πŸš€

illustration-people-pushing-globe-rocket-1.png

  • Set up a Jupyter Notebook
  • Connect it to an Anvil app
  • Make a UI

Step 1: login into anvil and click create app option

00001.PNG

Click on the setting button on upper left corner and click in uplink option

00002.PNG

Enable the uplink option and copy the uplink key for leter use

00004.PNG

00005.PNG

Finally install anvil in your local system

pip install anvil-uplink

ezgif.com-gif-maker (1).gif

Step 2: Setup the uplink to jupyter notebook

Use the uplink key here to connect the UI

0007.PNG

Step 3: Finally design UI

0008.PNG

Setup the server uplink with the UI and click on run button on the top of the page.

00008.PNG

Finally publish your app and share the public url

8888.PNG

4. Advantages of using anvil 🧭

5361079.png

5. Get Involve 🚩

online-studying-flat-concept-with-people-characters-illustration_9209-4455.jpg

6. Resources

🚩 https://anvil.works/

🚩 https://anvil.works/docs/overview

🚩 https://anvil.works/learn/tutorials/feedback-form

🚩 https://www.youtube.com/c/Anvil-works

That's all for this blog, I hope you will learn something new. And feel free to share your thoughts and feedback, Thanks for reading.

Feel free to reach out me πŸ‘€

Twitter πŸ–±

LinkedIn πŸ–±

Github πŸ–±

More from this blog

Hashnode

52 posts