Node.js

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to run JavaScript on the server side, enabling the creation of scalable and high-performance web applications. Node.js uses an event-driven, non-blocking I/O model, which makes it efficient and well-suited for real-time applications like chat and messaging systems.

Using Node.JS in Codesphere

The easiest way to get started with NodeJS in Codesphere is to create a workspace from this example GitHub repository: (Todo App Template)[https://github.com/codesphere-cloud/todo-app-template-js]. This contains a ready to run NodeJS app. Once provisioned head over to CI-Pipeline, run the prepare stage and once completed the run stage.

We intend to keep adding additional example use cases and tutorials for NodeJS to the documentation. Until then, you can explore the following list of blog articles.

Tutorials

Changing your Node.js version

We pre-install the Node.js version manager n. You can change the version with the following command: sudo n 18.12.0 , changing the version to the one you need. This command can be used in the terminal or in your CI pipeline.

Please note that this version selection will not be persistent across restarts, therefore we recommend adding this as an extra step to both your prepare and run stage.

We are working really hard to continuously improve our documentation, until we have caught up we are glad to assist you personally.

Please fill out the contact form to set up a consultation with one of our solution engineers or head over to our Discord community to get help.