This guide is tailored for developers who opt to code directly within the platform's integrated development environment (IDE). The IDE offers a comprehensive environment for writing, testing, and deploying code efficiently.
The IDE offers a user-friendly interface, designed to accommodate both novice and experienced developers. Here's how to begin coding directly on the platform:
Start by choosing the programming language for your project. The platform supports various languages, including:
- Python
- Node.js
- Other
For optimal interaction with the platform, your code should feature an app function, serving as the primary entry point.
-
Python: In Python, the
app
, which is an ASGI Application, should be defined in any of the files, acting as the entry point of your application.app = FlaskAPI() # Your Python code here
For detailed Python-specific guidelines, please see Python Documentation.
-
Node.js: In Node.js, the app function should be defined in the main file, initiating the application.
function app() { // Your Node.js code here }
Refer to Node.js Documentation for more on Node.js best practices.
-
Other: For languages other than Python and Node.js, ensure to define an equivalent entry function or method that complies with the execution standards of the respective language.
Consult Other Languages Documentation for specifics on other supported languages.
After writing your code in the IDE:
- Review and Test: Ensure your code runs correctly within the IDE.
- Upload: Follow the platform-specific instructions to upload your code.
- Execute: After upload, the code is ready for execution directly on the platform.