DEV Community

Cover image for Running Node App on Huggingface Spaces
Rahul Kiran Gaddam
Rahul Kiran Gaddam

Posted on

1

Running Node App on Huggingface Spaces

Overview

  • We all wanted to showcase our work, unfortunately, we require a compute instance to run our application.
  • Huggingface is used to store Machine Learning Models and Datasets. It has Spaces that can host your application to showcase your work.
  • In this blog, we will try to learn if we can use it to host Node-based docker applications.

Steps

  • Create your Account on Huggingface here
  • Click your profile icon on the right-hand top corner and navigate to New Space. New Space
  • On the new space, select options as listed below New Space Options
  • In the Readm.me file add update port details on which docker container is exposed Docker Port Details
  • Create three files index.js, package.json, Dockerfile.
  • System will build the application and host it in your space. U can get the URL by navigating to Space setting -> Embed this Space -> Direct URL

Space Settings

URL

  • For reference check out my space here , here

References

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay