Comment on page
Test your project locally
You can test your code locally by running this command in the project's root directory:
genezio local
The output of the command should look like this:
$ genezio local
Server listening on port 8083
Your code was deployed and the SDK was successfully generated!
Test your code at https://app.genez.io/test-interface/local?port=8083
This command will spawn a local server on a random port that can be used for testing and will also generate an SDK to be able to call the backend methods from the frontend code.
The SDK is built as a local npm library. To use it, while the local server is running, run this command in you client project:
npm link @genezio-sdk/{your-project-name}_{your-project-region}
If you just want to test your genezio code without having to write any code in your client, head over to the output link
https://app.genez.io/test-interface/local?port=8083
to test your project in the Genezio Test Interface:
You can use the Genezio Test Interface to test your projects locally, as well as remotely. Find more details about it at Test Interface.
To test the only the frontend locally, you can run the command below in the
client
directory:./project-root/client
npm start
If you want to test your project locally end-to-end, open two terminals,
./project-root
genezio local
./project-root/client
npm run install-dev-sdk
npm start
Last modified 1mo ago