Launch component icon Node.js with Diploi

Launch a new Node.js project and you will instantly have access to a development environment. No sign-up required.

component icon

Node.js

Diploi

  • Generic
  • Node.js
  • NPM
GitHub

Something extra?

Choose some optional add-ons to launch with Node.js

Instant launch. No sign-up required.


Node.js Component for Diploi

launch with diploi badge component on diploi badge latest tag badge

Start a demo environment (No card or registration needed) https://diploi.com/component/node

A generic Node.js component that can be used to run any Node.js app.

Uses the official node Docker image.

Operation

Getting started

  1. In the Dashboard, click Create Project +
  2. Under Pick Components, choose Node.js
  3. In Pick Add-ons, you can add one or multiple databases to your app
  4. Choose Create Repository, which will generate a new GitHub repo
  5. Lastly, click Launch Stack

Link to guide (includes additional information) https://diploi.com/blog/hosting_node_apps

Development

Will run npm install when component is first initialized, and npm run dev when deployment is started.

Production

Will build a production ready image. Image runs npm install & npm build when being created. Once the image runs, npm start is called.

Notes

  • If you are using packages that use native libraries (like node-canvas e.g.), it is a good idea to switch the Dockerfile and Dockerfile.dev to use node:XX instead of node:XX-slim. You can also add any missing libraries with RUN apt update && apt install -y <package> in the dockerfiles.

What is Diploi?

Diploi is the single SaaS service for managing, developing and hosting your full application.

  • Consistent

    • Consistent environments from development to production
    • Adoptable incrementally - start easy, grow later
  • One-Click

    • Fast 30 second new developer onboarding
    • One-click environment setup
    • Instantly shareable testing environments
  • Zero-Install

    • Zero-install remote development
    • Versatile support for any stack pre-build or custom
Learn more