This sample demosntrates how to deploy a very basic Sailsjs sample with Defang. The sample simply outputs hello world on the webpage.
- Download Defang CLI
- (Optional) If you are using Defang BYOC authenticated with your AWS account
- (Optional - for local development) Docker CLI
- Open the terminal and type
defang login
- Type
defang compose up
in the CLI. - Your app will be running within a few minutes.
For development, we use a local container. This can be seen in the compose.yaml document. To run the sample locally after cloning the respository, you can run on docker by using the following command:
- docker compose -f compose.dev.yaml up --build
Title: Sails.js
Short Description: A short hello world application demonstrating how to deploy Sails.js onto Defang.
Tags: Sails.js, Node.js
Languages: nodejs