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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. NodeJS Server

NodeJS Server

Scheduled Pinned Locked Moved Solved Support
nodejscustom-appsdocker
5 Posts 3 Posters 1.7k Views 4 Watching
  • 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 Offline
      T Offline
      tuningsocial
      wrote on last edited by girish
      #1

      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
      1
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by
        #2

        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
        1
        • nebulonN nebulon

          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 Offline
          T Offline
          tuningsocial
          wrote on last edited by
          #3

          @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
          2
          • nebulonN nebulon

            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 Offline
            T Offline
            tuningsocial
            wrote on last edited by
            #4

            @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
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by girish
              #5

              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
              2
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search