How To Deploy a Feedback API on Aleph Cloud Using Aleph CLI
Aleph Cloud is a Web3 Supercloud that provides infrastructure for decentralised storage, computing, and AI. It provides serverless computing, decentralised storage, and secure message routing without relying on traditional centralised servers. It also provides a blockchain indexing framework, allowing developers to index data from any blockchain network by leveraging the Aleph network's decentralised storage and compute capabilities.
Now let’s get our hands dirty. In this article, you will learn how to deploy an API on Aleph Cloud using Aleph CLI.
Prerequiste
Knowledge of Python
At least 500 Aleph in your Ethereum or Solana wallet
A Code editor, e.g VS Code
A folder for your project with a directory structure like this:
Let’s dive in
Set Up the Project
Install virtualenv using this command:
2. Create a virtual environment using this command:
3. Activate the virtual environment:
4. Install all the following packages:
Creating the Feedback API
In your
main.py, copy and paste the following code:Test Locally
Run the server:
2. Then test:
You should see the result here:
This shows that your API is working perfectly
Deploy to Aleph Cloud
You have to create an Aleph CLI account with your private key by following this process:
Create a new account using this command:
2. Enter your private key
3. Select the chain of your private key
To deploy the project:
Compress your
main.py file into a .zip fileUpload the file using this command:
3. Select the tier of the program you are going for and accept runtime reference
choose based on the amount of tokens you’ve and the project’s needs
4. Enter the name of your application
5. Since our project doesn’t require any volume and uses an environment variable
nAfter successfully deploying your project, you will receive a notification that your application has been deployed, including your API URL, like this:
Congratulations, you’ve just successfully deployed your API to Aleph cloud 🎉
You can add this feedback API to your dApp to get user feedback.
Conclusion
Aleph Cloud makes deployment easy for developers with its CLI and web console.
You can do much more with Aleph Cloud, such as:
Host your AI models as an instance.
Host your frontend code using the web hosting service.
And much more.
0 likes · 11 views · May 15, 2025
Deployed a Feedback API on Aleph Cloud using Aleph CLI.
Timeline
May 7, 2025 - May 7, 2025