Introduction
This guide covers deploying Express.js applications on Shard Cloud, from initial setup to production deployment.Creating Your Project
Before starting, ensure you have Node.js and npm installed. Download from the official Node.js website.Installing Express
Basic Express Application
Create anindex.js file:
index.js
Port 80 is required for web applications on Shard Cloud.
Package.json Configuration
package.json
Shard Cloud Configuration
Create a.shardcloud file in your project root:
.shardcloud
Deploying
Upload to Shard Cloud
Go to Shard Cloud Dashboard and
click “New app” to upload your project.
Additional Resources
For more information about Express, visit the official Express documentation.Troubleshooting
Application won't start
Application won't start
- Verify your
MAINfile path is correct - Check that port 80 is used for web applications - Ensure all dependencies are inpackage.json
Cannot connect to application
Cannot connect to application
- Confirm
SUBDOMAINis set in.shardcloud- Wait a few moments after deployment for DNS propagation
