In the index.py
file, you will see the implementation of a function that writes something to the console and returns a 200 page with a simple message.
You can preview the function and add a ?name=
URL parameter to see how it works.
Each function is exposed as an HTTP endpoint and can be called from a third-party application.
You can add new functions (new py files), but you'll need to add them in the functions section of genezio.yaml to ensure they are deployed and exposed.
🚀 You can deploy your own version of the template to Genezio with one click:
Genezio also provides a CLI tool that you can use to deploy your project from your machine. All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install -g genezio |
Installs genezio globally |
genezio login |
Logs in to genezio |
genezio local |
Starts a local server |
genezio deploy |
Deploys a production project |
genezio --help |
Get help using genezio |
To learn more about Genezio, take a look at the following resources:
If you need support or you have any questions, please join us in our Discord channel. We'd love to chat!