Getting Started with Node.js Hosting
Deploy your Node.js applications on ShardWeb Cloud with minimal configuration and maximum performance.ShardCloud supports both JavaScript (.js) and TypeScript (.ts) Node.js applications out of the box.
Prerequisites
Before uploading your Node.js application, ensure you have the following project structure ready.Required Files
Essential files for deployment
Excluded Files
Files to exclude before upload
Required Files
Your Node.js application must include these three essential files:1. Entry Point File
- File:
index.jsorindex.ts - Purpose: Main application entry point
- Requirements: Must export or start your server
2. Package Configuration
- File:
package.json - Purpose: Defines dependencies and project metadata
- Requirements: Valid JSON with dependencies listed
3. ShardCloud Configuration
- File:
.shardcloud - Purpose: Platform-specific deployment settings
- Requirements: Plain text configuration file
Files to Exclude
Remove these files/folders before creating your deployment archive:- node_modules
- package-lock.json
ShardCloud Configuration
The .shardcloud file configures your application deployment settings.Configuration Example
Choose the minimum required for your application’s needs.
Deployment Process
Upload via Dashboard
Use ShardCloud dashboard to upload your archive
