Genezio is a serverless solution for seamlessly building full-stack web and mobile applications in a scalable and cost-efficient way.
Only a small part of genezio’s functionality is discussed in this article.
For complete developer documentation, please go to our Official Documentation.
We invite you to join our community on Discord for further information and help.
Let’s Get Started
This guide will get you up and running with genezio in less than five minutes. We’ve already made an application which is ready for you to deploy in the genezio infrastructure.
Install genezio CLI
First, you need to install genezio on your working machine by running the following command:
npm install genezio -g
Log in to the genezio Cloud
A web browser will open and you will need to create an account using your Google or GitHub account.
Figure 1: Screenshot of the genezio Sign In page
After you log in, you will be redirected to a page that will automatically authenticate your CLI application.
A success message will appear on the screen, and you can now return to your terminal.
Clone the Getting Started Example
Now that you are logged in, let’s make this easy. Clone this GitHub repository to your computer. If you don’t remember how to do this, copy and paste these commands in your terminal:
git clone https://github.com/Genez-io/genezio-getting-started-typescript.git cd ./genezio-getting-started-typescript
By running this set of commands, the repository is cloned into a local directory named
genezio-getting-started-typescript, and then going to that project.
Test your application locally
Run the following command to open a local test environment that simulates the same behavior as the one in the production.
Deploy Your First Application
Let’s deploy the application!
This command deploys your backend classes and automatically creates an SDK in the client folder that you can use in the frontend application. It also deploys the frontend application to the genezio’s CDN and gives you a subdomain for your application.
The SDK is basically calling the deployed code using JSON-RPC standard.
You should see the following output:
Deploy your project to genezio infrastructure. . . Your code was deployed and the SDK was successfully generated! Your project has been deployed and is available at https://app.genez.io/project/<projectId> Frontend successfully deployed at https://<random-subdomain>.dev.app.genez.io.
You can see the logs of the project on your genezio dashboard. Also, from there you can pause or delete the project.
Now that the full-stack application is deployed, you can test it directly on the provided link or by using our testing tool from the dashboard.
Congratulations, you’ve now finished your first genezio application!