Navigation

    APPDRAG Community

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

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    is it possible to run a pug app on appdrag with nodejs and mongodb?

    Cloud Backend (Cloud DB, API Builder)
    4
    18
    1058
    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.
    • Linda MacDonald
      Linda MacDonald last edited by

      hey there guys 🙂

      is it possible to run a pug app on appdrag with nodejs and mongodb?

      thanks in advance
      Linda

      1 Reply Last reply Reply Quote 0
      • Wassim
        Wassim last edited by

        Hi,
        I don't know Pug and after searching for it, it seems it's running on nodejs? You would need a VM to run Nodejs+Mongo with it. Cloud API Functions are micro services not designed for running continuously.

        1 Reply Last reply Reply Quote 0
        • Linda MacDonald
          Linda MacDonald last edited by

          @Wassim perhaps this can do the trick? 🙂

          https://senecajs.org/

          1 Reply Last reply Reply Quote 0
          • Wassim
            Wassim last edited by

            Hi this seems to be more a way to have a continuously running node js server acting like micro services.

            For Pug I suggest you to seek after a dedicated VM, @Joseph-Benguira might have a solution for you in his magic hat.

            Linda MacDonald 1 Reply Last reply Reply Quote 0
            • Linda MacDonald
              Linda MacDonald @Wassim last edited by Linda MacDonald

              @Wassim lol love @Joseph-Benguira magic hat cause it seems to be full of magic tricks 🙂 but rather than taking this further(I just took a course on pug and nodejs so I had to ask), I would MUCH rather know if I can use next.js for the front and hook it up with nodejs on the back, in appdrag...have kinda fallen in love with next 🙂

              Joseph Benguira 1 Reply Last reply Reply Quote 0
              • J
                jbenguira last edited by

                Outside of Vercel Next.js require a nodejs server running continuously, so indeed you will need a VM even to run the frontend part.
                There is probably tricks to make a static version that you can then deploy with appdrag CLI
                For the backend you can point to appdrag cloudbackend endpoints (functions urls)

                If you want to try the VM way, I invite you to create a new VM on https://www.openvm.cloud
                Pi'g me in private once you have created an account and I'll be able to add free credits on your account ☺️

                1 Reply Last reply Reply Quote 0
                • Joseph Benguira
                  Joseph Benguira @Linda MacDonald last edited by

                  @Linda-MacDonald I have added some free credits to your OpenVM account 🙂

                  Linda MacDonald 1 Reply Last reply Reply Quote 0
                  • Linda MacDonald
                    Linda MacDonald @Joseph Benguira last edited by Linda MacDonald

                    @Joseph-Benguira oh my goodness thank you, Joseph, for the credits...so YOU are the mastermind behind OpenVM?? 🙂 so time for a little RANT: this is soooo awesome 🙂 I LOOOOOOOOVE this!!!! and there is even MongoDB and Postgres and my favourite headless cms of all times Strapi and ghost AND SEAAAARCH!!!!- be still my heart, life does NOT GET ANY BETTER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 🙂 🙂 :), sooooooooooooooo absolutely phenomenal!!!!!!!!!!
                    SO let us at em: how do we deploy, e.g. a next.js app with this bad boy? I am working on the next.js mongodb app, can I host it on openVM? AND I have a next.js website ready to rock 🙂 Are there some docs that I can take a sneak peak at ?

                    1 Reply Last reply Reply Quote 2
                    • J
                      jbenguira last edited by

                      We are working on the OpenVM documentation currently 🙂

                      In the meantime you can deploy a VM with your preferred DB (mongodb is in the list) then once the VM is started and running, click on the cog icon of your VM and select VSCODE

                      From there you can synchronize your code from github or simply upload it with the file explorer

                      You can then start and run your project as indicated in next.js documentation :
                      https://nextjs.org/docs

                      Linda MacDonald 2 Replies Last reply Reply Quote 0
                      • Linda MacDonald
                        Linda MacDonald @jbenguira last edited by

                        @jbenguira UH lala so I can use this service for the backend and then vercel for the frontend? 🤩

                        1 Reply Last reply Reply Quote 0
                        • Linda MacDonald
                          Linda MacDonald @jbenguira last edited by

                          @jbenguira this would be phenomenal to include in the OpenVMS project 🙂 it's an opensource alternative to firebase and looks really good 🙂

                          https://supabase.io

                          Joseph Benguira 1 Reply Last reply Reply Quote 1
                          • Joseph Benguira
                            Joseph Benguira @Linda MacDonald last edited by

                            @Linda-MacDonald Definitely, it's in the roadmap for next 2 weeks 😄

                            Linda MacDonald 1 Reply Last reply Reply Quote 0
                            • Linda MacDonald
                              Linda MacDonald @Joseph Benguira last edited by Linda MacDonald

                              @Joseph-Benguira soooooo coool 🙂 so I am ready to deploy but I am not sure which service I need? it's a headless project gatsby and strapi. The strapi project has been implementet setup locally and I've done a few tweaks to it, but got a bit unsure on how to deploy it, is NextCloud I need?

                              regards Linda

                              1 Reply Last reply Reply Quote 0
                              • Joseph Benguira
                                Joseph Benguira last edited by

                                OK so I have investigated a bit more SupaBase ... unfortunately there is no WEB UI in the opensource version ... it's just the regular Postgres + few plugins preloaded ... so for now it won't be included, this might change if later they add a web UI in the open source version

                                Linda MacDonald 1 Reply Last reply Reply Quote 0
                                • Linda MacDonald
                                  Linda MacDonald @Joseph Benguira last edited by Linda MacDonald

                                  @Joseph-Benguira silly that nothing much is in the opensource project, my bad, I didn't check just saw the website 😕
                                  meanwhile back at the farm can I deploy a gatsbyjs/strapi project and if yes, which option from the dashboard do I use?

                                  1 Reply Last reply Reply Quote 0
                                  • Joseph Benguira
                                    Joseph Benguira last edited by

                                    Hey Linda,
                                    In that case you use directly the Strapi template (available in the list)
                                    once the VM is ready, click on the cogs icon, then click on "File Explorer"
                                    From there navigate to /opt/app/strapi ... and place your files there 🙂

                                    FYI I'm not an expert on Strapi so probably their community will be able to better assist you on that
                                    I know there is also a lot of tutorials available about strapi

                                    Linda MacDonald 2 Replies Last reply Reply Quote 0
                                    • Linda MacDonald
                                      Linda MacDonald @Joseph Benguira last edited by

                                      @Joseph-Benguira excellent thanks 🙂 and can I upload a gatsby js frontend for it? If yes which option on the dashboard do I choose for that?

                                      1 Reply Last reply Reply Quote 0
                                      • Linda MacDonald
                                        Linda MacDonald @Joseph Benguira last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post