Welcome to the "Create Repository from Template using Github API" template! This template is designed to help you create a new GitHub repository using an existing template repository. It automates the process through a simple API call, allowing you to specify the new repository's name and description. This is particularly useful for quickly setting up new projects with a predefined structure and files.
To begin using this template, simply click on the "Start with this Template" button. This will initialize the template in the Lazy Builder interface, pre-populating the code for you.
Before you can use this template, you need to set up some environment secrets within the Lazy Builder. These secrets will store sensitive information required by the GitHub API to create a repository from a template.
Here are the environment secrets you need to set up:
To add these secrets:
Once you have set up the environment secrets, you can test the template by clicking the "Test" button. This will deploy the app and launch the Lazy CLI.
After pressing the "Test" button, the Lazy CLI will handle the deployment of your application. Once the deployment is complete, Lazy will provide you with a dedicated server link. You can use this link to interact with the API.
Since this template uses FastAPI, you will also be provided with a link to the API documentation. This documentation will be accessible at the /docs endpoint and will allow you to see all the available API routes and test them directly from your browser.
If you wish to integrate the newly created repository into another service or frontend, you can use the URL provided by the Lazy CLI after the repository is successfully created. This URL will point to the new GitHub repository, where you can clone the repository or set up webhooks and other integrations as needed.
For example, if you want to clone the repository, you can use the following command in your terminal:
git clone [URL provided by Lazy CLI]
Replace [URL provided by Lazy CLI] with the actual URL provided after the repository creation.
Remember, all the steps listed above are mandatory to run and integrate the template. Follow them carefully to ensure a smooth experience with the "Create Repository from Template using Github API" template on Lazy.