đDeploy a Next.js application on Clouddley Apps
Learn how to deploy a Nextjs app on Clouddley Apps
Last updated
Learn how to deploy a Nextjs app on Clouddley Apps
Last updated
Clouddley Apps is a SaaS platform designed to simplify deployment for businesses, enabling them to effortlessly choose and deploy on their preferred Cloud Providers. In this guide, weâll create a Nextjs application from scratch and deploy it on AWS using Clouddley Apps.
Install NPM and Nodejs
Clouddley account
In your Clouddley account, create the following:
AWS account
Install the create-next-app
CLI tool.
In your terminal, enter the command
This installs and generates the default template. Following that, you will be asked the subsequent prompts below. Select the options based on your preference.
After selection, the default template is generated and you will see an output like this;
Preview your Nextjs app in your web browser.
Navigate to your app directory
Enter the following command to run your application
Visit the link generated in your web browser.
Create a Git repository and push your code to GitHub
Copy and Paste the command below
You can check out our code here.
Create an App on Clouddley Apps
Log into your Clouddley account and navigate to Apps
Click on Add app to create a new app
Set up Git for your Clouddley Apps
Configure git by choosing the Username/Organization, source code's repository, and branch.
Configure your Cloud Provider
To configure the cloud provider, select the git connection you want to use.
Configure your Application
To configure your application, do the following:
Type in the name of your application
Select the project
Set the application port
Select the repository type source code. This can either be source code or Dockerfile depending on your choice.
Select the runtime, For this app we will be using Nodejs 16
Type in the build command:
npm i && npm run build
Type in the start command:
npm run start
Configure your App settings
Networking: Set up how your service establishes communication with other applications, services, and resources. On Clouddley apps, you can choose 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.
Create your App
Click on Create App. This takes you to your app dashboard and once the app deployment is complete, the App status changes from deploying
to running
Your application should now be available on the URL on your app dashboard.
Youâve successfully deployed your Nextjs application on Clouddley Apps.
A successful deployment lays the foundation for a seamless user experience and paves the way for future growth and scalability. Now you've deployed your Nextjs Application on Clouddley Apps, you are ready to further customize your application with additional features. You can check out how to deploy other frameworks here.