In the server/ folder, you'll find the backend services that are exposed to the client-side via the project's SDK. You can update the backend.ts file to add or modify functions, or create new backend services (new files in the server/ folder).
In the client/ folder, you have a basic React.js app that calls the hello world function from the backend. Check the src/App.tsx file to see how the Genezio project SDK is imported and how the backend function is called.
Starting from this example, you can add backend functions that access a database for specific content, call other APIs to retrieve data, and then expose all of these in the front end via the same SDK.
🚀 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!