This repository contains a minimal Node.js application that can be deployed on Clever Cloud. It demonstrates how to create the simplest possible Node.js application with no external dependencies that runs on the Clever Cloud platform.
index.js
- Main application file that creates a simple HTTP serverpackage.json
- Node.js project configuration
- Minimal HTTP server implementation using Node.js built-in modules
- No external dependencies
- Configurable port via environment variable
- Ready for deployment on Clever Cloud
- Node.js 22 or later (as specified in package.json)
To run this application locally:
node index.js
The server will start on port 8080 by default (unless the PORT environment variable is set differently).
You can access the application at: http://localhost:8080
-
Install the Clever Cloud CLI:
npm install -g clever-tools
-
Login to your Clever Cloud account:
clever login
-
Create a new application (or link to an existing one):
clever create --type node <app-name>
-
Deploy your application:
clever deploy
You can also deploy directly from the Clever Cloud Console:
- Create a new application in the console
- Select Node.js as the runtime
- Follow the deployment instructions provided in the console
PORT
- The port on which the server will listen (defaults to 8080)
Clever Cloud is a European cloud provider that automates the deployment and running of applications, allowing developers to focus on code rather than infrastructure.