Setting up your Node.js project
The steps for setting up your Node.js project on Semaphore are as simple as for setting up Ruby a project.
In the build environment Semaphore has the Node Package Manager preinstalled, so you can easily install your dependencies specified in package.json, or install new global packages by using npm, for example:
Semaphore’s current build platform has the following versions of Node.js preinstalled:
– 0.10.24 (latest stable version)
– 0.11.10 (latest unstable version)
For managing versions we use Node Version Manager. For easy switching, we have set the corresponding version aliases as:
– 0.8 => 0.8.26
– 0.10 => 0.10.24
– 0.11.10 => 0.11
If you want to use another version, you can simply add a build setup command to install it:
Semaphore also makes the following tools available:
If you are developing a Node.js project that works with a database, see our refreshed Database access documentation page for information about the engines available and required credentials.
For Rails apps with generate a working config/database.yml based on the selected database in project settings. We are open to identifying a similar common use case for Node.js apps. So if you have a Node.js project and work with a database, feel free to get in touch and tell us how you are configuring it.