đDeploy a Nestjs Application on Clouddley Apps
Learn how to deploy a Nestjs app on Clouddley Apps
After choosing Nest.js as your framework to build a scalable Node.js application, you can leverage Clouddley Apps, a SaaS platform to deploy your application. This guide will walk you through the process of building a Nest.js application from the ground up and deploying it on AWS using Clouddley Apps.
Prerequisites
Install NPM and Nodejs
A Clouddley account
In your Clouddley account, create the following:
AWS account
Create and Deploy App
Step 1
Install Nestjs CLI
In your terminal, run the command
Step 2
Create a new Nestjs project
Type in this command in your CLI
Select the package manager of your choice. Select npm
Wait while your template is being generated. Once it's complete, you should see the following output :
Step 3
Test your Nestjs app on your browser
Step 4
Create a repository and push your code to GitHub
Run the commands below:
Feel free to explore our source code here
Step 5
Create an App on Clouddley Apps
Sign in to your Clouddley account and navigate to the Apps section.
Then, select Add app to initiate the creation of a new application.
Step 6
Enable Git integration for your Clouddley Apps
Configure Git settings by selecting the Username/Organization, source code repository, and preferred branch.
Step 7
Configure your Cloud Provider
To set up the cloud provider, choose the desired Git connection for configuration.
Step 8
Configure your Application
To set up your application, follow these steps:
Enter your application's name.
Choose the project.
Set the application's port.
Select the repository type source code.
Select the runtime; in this case, we'll use Node.js 16.
Enter the build command:
npm i && npm run build
Enter the start command:
npm run start
Step 9
Configure your App settings
Networking: Configure how your service establishes connections with other applications, services, and resources. Within Clouddley apps, you have the option to select between Public access and VPC connections.
Your service has the capability to transmit outgoing messages exclusively to public network endpoints. This is the default networking.
Step 10
Create your App
Select Create App. This action will direct you to your app dashboard, and once the app deployment finishes, the app status transitions from
deploying
torunning
Your application is now accessible via the URL displayed on your app dashboard.
Youâve successfully deployed your Nestjs application on Clouddley Apps.
Conclusion
With your Nest.js Application successfully deployed on Clouddley Apps, you've established a solid foundation for a smooth user experience, creating opportunities for future expansion and scalability. Now, you can enhance your application by creating additional features and customizations. You can also check out how to deploy other frameworks here.
Last updated