Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved NodeJS Server

    Support
    nodejs custom-apps docker
    3
    5
    657
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tuningsocial last edited by girish

      So i've been looking, and it seems that at the moment, there is no way to run custom NodeJS applications in a cloudron environment. Using Node from a container for things like Slack integrations or other webhook like functions would be ideal, and having the ability to install extensions with npm makes that possible.

      I bring this up because in the lamp stack, npm cannot install extensions.

      Would it be possible to build a NodeJS container?

      1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff last edited by

        Indeed we do not have currently other runtime/framework apps like LAMP. Mostly LAMP is there since it is so common for webservers to have that, especially if a user comes from shared hosting environments.

        One options for you might be to simply create an app package for your nodejs application on your own. Our base image already has everything in it, so if you are comfortable with the commandline it should be easier that way, especially with regards to specific version requirements. We have some hello world nodejs app package example at https://cloudron.io/documentation/custom-apps/tutorial/#sample-app

        T 2 Replies Last reply Reply Quote 1
        • T
          tuningsocial @nebulon last edited by

          @nebulon Ill throw one together in a little while and see if I can get it to work as expected! Thanks, I didnt even think about the sample app 😆

          1 Reply Last reply Reply Quote 2
          • T
            tuningsocial @nebulon last edited by

            @nebulon I built myself a node image with the endpoint I had built previously and it works as expected. It was rather easy. Thank you for the heads up

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by girish

              For others looking for examples, there's a bunch of custom app templates I made that should help getting started:

              • https://git.cloudron.io/cloudron/tutorial-php-app/
              • https://git.cloudron.io/cloudron/tutorial-nodejs-app
              • https://git.cloudron.io/cloudron/tutorial-basic
              • https://git.cloudron.io/cloudron/tutorial-redis
              • https://git.cloudron.io/cloudron/tutorial-supervisor-app
              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              Powered by NodeBB