Skip to content

Commit 7e4c493

Browse files
authored
docs: minor rewrite in quick start guide (#10)
* docs: minor rewrite in quick start guide * chore: addressing pr comments
1 parent 526407f commit 7e4c493

File tree

15 files changed

+330
-246
lines changed

15 files changed

+330
-246
lines changed

examples/generators/production_python_smart_contract_python/.github/workflows/production-python-smart-contract-python-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: pipx install algokit
3232

3333
- name: Bootstrap dependencies
34-
run: algokit bootstrap all --project-name 'production_python_smart_contract_python'
34+
run: algokit project bootstrap all --project-name 'production_python_smart_contract_python'
3535

3636
- name: Configure git
3737
shell: bash

examples/generators/production_python_smart_contract_python/.github/workflows/production-python-smart-contract-python-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: algokit localnet start
2828

2929
- name: Bootstrap dependencies
30-
run: algokit bootstrap all --project-name 'production_python_smart_contract_python'
30+
run: algokit project bootstrap all --project-name 'production_python_smart_contract_python'
3131

3232
- name: Configure git
3333
shell: bash

examples/generators/production_python_smart_contract_python/README.md

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,52 @@ This project has been generated using AlgoKit. See below for default getting sta
1111

1212
> For interactive tour over the codebase, download [vsls-contrib.codetour](https://marketplace.visualstudio.com/items?itemName=vsls-contrib.codetour) extension for VS Code, then open the [`.codetour.json`](./.tours/getting-started-with-your-algokit-project.tour) file in code tour extension.
1313
14-
### Initial setup
15-
16-
1. Clone this repository locally
17-
2. Install pre-requisites:
18-
- Make sure to have [Docker](https://www.docker.com/) installed and running on your machine.
19-
- Install `AlgoKit` - [Link](https://github.com/algorandfoundation/algokit-cli#install): The recommended version is the latest available. Ensure you can execute `algokit --version` and get `2.0.0` or later.
20-
- Bootstrap your local environment; run `algokit bootstrap all` within this folder, which will:
21-
- Install `Poetry` - [Link](https://python-poetry.org/docs/#installation): The minimum required version is `^1.7`. Ensure you can execute `poetry -V` and get `1.2`+
22-
- Run `poetry install` in the root directory, which will set up a `.venv` folder with a Python virtual environment and also install all Python dependencies
23-
- Copy `.env.template` to `.env`
24-
- Run `algokit localnet start` to start a local Algorand network in Docker. If you are using VS Code launch configurations provided by the template, this will be done automatically for you.
25-
- Run `algokit project bootstrap all` to install all project dependencies (unless executed during `algokit init`).
26-
3. Open the project and start debugging / developing via:
27-
- Terminal
28-
1. Run `algokit project run build` to build all contracts in the project
29-
2. Run `algokit project deploy localnet` to deploy all contracts to the local Algorand network.
30-
- VS Code (Launch Configurations)
31-
1. Open the repository root in VS Code
32-
2. Install recommended extensions
33-
3. Hit F5 (or whatever you have debug mapped to) and it should start running with breakpoint debugging.
34-
> **Note**
35-
> If using Windows: Before running for the first time you will need to select the Python Interpreter.
36-
1. Open the command palette (Ctrl/Cmd + Shift + P)
37-
2. Search for `Python: Select Interpreter`
38-
3. Select `./.venv/Scripts/python.exe`
39-
- JetBrains IDEs (please note, this setup is primarily optimized for PyCharm Community Edition)
40-
1. Open the repository root in the IDE
41-
2. It should automatically detect it's a Poetry project and set up a Python interpreter and virtual environment.
42-
3. Hit Shift+F10|Ctrl+R (or whatever you have debug mapped to) and it should start running with breakpoint debugging. Please note, JetBrains IDEs on Windows have a known bug that in some cases may prevent executing shell scripts as pre-launch tasks, for workarounds refer to [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task).
43-
44-
### Subsequently
45-
46-
1. If you update to the latest source code and there are new dependencies you will need to run `algokit bootstrap all` again
47-
2. Follow step 3 above
14+
### Initial Setup
15+
16+
#### 1. Clone the Repository
17+
Start by cloning this repository to your local machine.
18+
19+
#### 2. Install Pre-requisites
20+
Ensure the following pre-requisites are installed and properly configured:
21+
22+
- **Docker**: Required for running a local Algorand network. [Install Docker](https://www.docker.com/).
23+
- **AlgoKit CLI**: Essential for project setup and operations. Install the latest version from [AlgoKit CLI Installation Guide](https://github.com/algorandfoundation/algokit-cli#install). Verify installation with `algokit --version`, expecting `2.0.0` or later.
24+
25+
#### 3. Bootstrap Your Local Environment
26+
Run the following commands within the project folder:
27+
28+
- **Install Poetry**: Required for Python dependency management. [Installation Guide](https://python-poetry.org/docs/#installation). Verify with `poetry -V` to see version `1.2`+.
29+
- **Setup Project**: Execute `algokit project bootstrap all` to:
30+
- Install dependencies and setup a Python virtual environment in `.venv`.
31+
- Copy `.env.template` to `.env`.
32+
- **Start LocalNet**: Use `algokit localnet start` to initiate a local Algorand network.
33+
34+
### Development Workflow
35+
36+
#### Terminal
37+
Directly manage and interact with your project using AlgoKit commands:
38+
39+
1. **Build Contracts**: `algokit project run build` compiles all smart contracts.
40+
2. **Deploy**: Use `algokit project deploy localnet` to deploy contracts to the local network.
41+
42+
#### VS Code
43+
For a seamless experience with breakpoint debugging and other features:
44+
45+
1. **Open Project**: In VS Code, open the repository root.
46+
2. **Install Extensions**: Follow prompts to install recommended extensions.
47+
3. **Debugging**:
48+
- Use `F5` to start debugging.
49+
- **Windows Users**: Select the Python interpreter at `./.venv/Scripts/python.exe` via `Ctrl/Cmd + Shift + P` > `Python: Select Interpreter` before the first run.
50+
51+
#### JetBrains IDEs
52+
While primarily optimized for VS Code, JetBrains IDEs are supported:
53+
54+
1. **Open Project**: In your JetBrains IDE, open the repository root.
55+
2. **Automatic Setup**: The IDE should configure the Python interpreter and virtual environment.
56+
3. **Debugging**: Use `Shift+F10` or `Ctrl+R` to start debugging. Note: Windows users may encounter issues with pre-launch tasks due to a known bug. See [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task) for workarounds.
57+
58+
## AlgoKit Workspaces and Project Management
59+
This project supports both standalone and monorepo setups through AlgoKit workspaces. Leverage [`algokit project run`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/run.md) commands for efficient monorepo project orchestration and management across multiple projects within a workspace.
4860

4961
> For guidance on `smart_contracts` folder and adding new contracts to the project please see [README](smart_contracts/README.md) on the respective folder.### Continuous Integration / Continuous Deployment (CI/CD)
5062

examples/generators/production_python_smart_contract_typescript/.github/workflows/production-python-smart-contract-typescript-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: pipx install algokit
3232

3333
- name: Bootstrap dependencies
34-
run: algokit bootstrap all --project-name 'production_python_smart_contract_typescript'
34+
run: algokit project bootstrap all --project-name 'production_python_smart_contract_typescript'
3535

3636
- name: Configure git
3737
shell: bash

examples/generators/production_python_smart_contract_typescript/.github/workflows/production-python-smart-contract-typescript-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: algokit localnet start
2828

2929
- name: Bootstrap dependencies
30-
run: algokit bootstrap all --project-name 'production_python_smart_contract_typescript'
30+
run: algokit project bootstrap all --project-name 'production_python_smart_contract_typescript'
3131

3232
- name: Configure git
3333
shell: bash

examples/generators/production_python_smart_contract_typescript/README.md

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,52 @@ This project has been generated using AlgoKit. See below for default getting sta
1111

1212
> For interactive tour over the codebase, download [vsls-contrib.codetour](https://marketplace.visualstudio.com/items?itemName=vsls-contrib.codetour) extension for VS Code, then open the [`.codetour.json`](./.tours/getting-started-with-your-algokit-project.tour) file in code tour extension.
1313
14-
### Initial setup
15-
16-
1. Clone this repository locally
17-
2. Install pre-requisites:
18-
- Make sure to have [Docker](https://www.docker.com/) installed and running on your machine.
19-
- Install `AlgoKit` - [Link](https://github.com/algorandfoundation/algokit-cli#install): The recommended version is the latest available. Ensure you can execute `algokit --version` and get `2.0.0` or later.
20-
- Bootstrap your local environment; run `algokit bootstrap all` within this folder, which will:
21-
- Install `Poetry` - [Link](https://python-poetry.org/docs/#installation): The minimum required version is `^1.7`. Ensure you can execute `poetry -V` and get `1.2`+
22-
- Run `poetry install` in the root directory, which will set up a `.venv` folder with a Python virtual environment and also install all Python dependencies
23-
- Copy `.env.template` to `.env`
24-
- Run `algokit localnet start` to start a local Algorand network in Docker. If you are using VS Code launch configurations provided by the template, this will be done automatically for you.
25-
- Run `algokit project bootstrap all` to install all project dependencies (unless executed during `algokit init`).
26-
3. Open the project and start debugging / developing via:
27-
- Terminal
28-
1. Run `algokit project run build` to build all contracts in the project
29-
2. Run `algokit project deploy localnet` to deploy all contracts to the local Algorand network.
30-
- VS Code (Launch Configurations)
31-
1. Open the repository root in VS Code
32-
2. Install recommended extensions
33-
3. Hit F5 (or whatever you have debug mapped to) and it should start running with breakpoint debugging.
34-
> **Note**
35-
> If using Windows: Before running for the first time you will need to select the Python Interpreter.
36-
1. Open the command palette (Ctrl/Cmd + Shift + P)
37-
2. Search for `Python: Select Interpreter`
38-
3. Select `./.venv/Scripts/python.exe`
39-
- JetBrains IDEs (please note, this setup is primarily optimized for PyCharm Community Edition)
40-
1. Open the repository root in the IDE
41-
2. It should automatically detect it's a Poetry project and set up a Python interpreter and virtual environment.
42-
3. Hit Shift+F10|Ctrl+R (or whatever you have debug mapped to) and it should start running with breakpoint debugging. Please note, JetBrains IDEs on Windows have a known bug that in some cases may prevent executing shell scripts as pre-launch tasks, for workarounds refer to [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task).
43-
44-
### Subsequently
45-
46-
1. If you update to the latest source code and there are new dependencies you will need to run `algokit bootstrap all` again
47-
2. Follow step 3 above
14+
### Initial Setup
15+
16+
#### 1. Clone the Repository
17+
Start by cloning this repository to your local machine.
18+
19+
#### 2. Install Pre-requisites
20+
Ensure the following pre-requisites are installed and properly configured:
21+
22+
- **Docker**: Required for running a local Algorand network. [Install Docker](https://www.docker.com/).
23+
- **AlgoKit CLI**: Essential for project setup and operations. Install the latest version from [AlgoKit CLI Installation Guide](https://github.com/algorandfoundation/algokit-cli#install). Verify installation with `algokit --version`, expecting `2.0.0` or later.
24+
25+
#### 3. Bootstrap Your Local Environment
26+
Run the following commands within the project folder:
27+
28+
- **Install Poetry**: Required for Python dependency management. [Installation Guide](https://python-poetry.org/docs/#installation). Verify with `poetry -V` to see version `1.2`+.
29+
- **Setup Project**: Execute `algokit project bootstrap all` to:
30+
- Install dependencies and setup a Python virtual environment in `.venv`.
31+
- Copy `.env.template` to `.env`.
32+
- **Start LocalNet**: Use `algokit localnet start` to initiate a local Algorand network.
33+
34+
### Development Workflow
35+
36+
#### Terminal
37+
Directly manage and interact with your project using AlgoKit commands:
38+
39+
1. **Build Contracts**: `algokit project run build` compiles all smart contracts.
40+
2. **Deploy**: Use `algokit project deploy localnet` to deploy contracts to the local network.
41+
42+
#### VS Code
43+
For a seamless experience with breakpoint debugging and other features:
44+
45+
1. **Open Project**: In VS Code, open the repository root.
46+
2. **Install Extensions**: Follow prompts to install recommended extensions.
47+
3. **Debugging**:
48+
- Use `F5` to start debugging.
49+
- **Windows Users**: Select the Python interpreter at `./.venv/Scripts/python.exe` via `Ctrl/Cmd + Shift + P` > `Python: Select Interpreter` before the first run.
50+
51+
#### JetBrains IDEs
52+
While primarily optimized for VS Code, JetBrains IDEs are supported:
53+
54+
1. **Open Project**: In your JetBrains IDE, open the repository root.
55+
2. **Automatic Setup**: The IDE should configure the Python interpreter and virtual environment.
56+
3. **Debugging**: Use `Shift+F10` or `Ctrl+R` to start debugging. Note: Windows users may encounter issues with pre-launch tasks due to a known bug. See [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task) for workarounds.
57+
58+
## AlgoKit Workspaces and Project Management
59+
This project supports both standalone and monorepo setups through AlgoKit workspaces. Leverage [`algokit project run`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/run.md) commands for efficient monorepo project orchestration and management across multiple projects within a workspace.
4860

4961
> For guidance on `smart_contracts` folder and adding new contracts to the project please see [README](smart_contracts/README.md) on the respective folder.### Continuous Integration / Continuous Deployment (CI/CD)
5062

examples/generators/starter_python_smart_contract_python/README.md

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,52 @@ This project has been generated using AlgoKit. See below for default getting sta
1111

1212
> For interactive tour over the codebase, download [vsls-contrib.codetour](https://marketplace.visualstudio.com/items?itemName=vsls-contrib.codetour) extension for VS Code, then open the [`.codetour.json`](./.tours/getting-started-with-your-algokit-project.tour) file in code tour extension.
1313
14-
### Initial setup
15-
16-
1. Clone this repository locally
17-
2. Install pre-requisites:
18-
- Make sure to have [Docker](https://www.docker.com/) installed and running on your machine.
19-
- Install `AlgoKit` - [Link](https://github.com/algorandfoundation/algokit-cli#install): The recommended version is the latest available. Ensure you can execute `algokit --version` and get `2.0.0` or later.
20-
- Bootstrap your local environment; run `algokit bootstrap all` within this folder, which will:
21-
- Install `Poetry` - [Link](https://python-poetry.org/docs/#installation): The minimum required version is `^1.7`. Ensure you can execute `poetry -V` and get `1.2`+
22-
- Run `poetry install` in the root directory, which will set up a `.venv` folder with a Python virtual environment and also install all Python dependencies
23-
- Copy `.env.template` to `.env`
24-
- Run `algokit localnet start` to start a local Algorand network in Docker. If you are using VS Code launch configurations provided by the template, this will be done automatically for you.
25-
- Run `algokit project bootstrap all` to install all project dependencies (unless executed during `algokit init`).
26-
3. Open the project and start debugging / developing via:
27-
- Terminal
28-
1. Run `algokit project run build` to build all contracts in the project
29-
2. Run `algokit project deploy localnet` to deploy all contracts to the local Algorand network.
30-
- VS Code (Launch Configurations)
31-
1. Open the repository root in VS Code
32-
2. Install recommended extensions
33-
3. Hit F5 (or whatever you have debug mapped to) and it should start running with breakpoint debugging.
34-
> **Note**
35-
> If using Windows: Before running for the first time you will need to select the Python Interpreter.
36-
1. Open the command palette (Ctrl/Cmd + Shift + P)
37-
2. Search for `Python: Select Interpreter`
38-
3. Select `./.venv/Scripts/python.exe`
39-
- JetBrains IDEs (please note, this setup is primarily optimized for PyCharm Community Edition)
40-
1. Open the repository root in the IDE
41-
2. It should automatically detect it's a Poetry project and set up a Python interpreter and virtual environment.
42-
3. Hit Shift+F10|Ctrl+R (or whatever you have debug mapped to) and it should start running with breakpoint debugging. Please note, JetBrains IDEs on Windows have a known bug that in some cases may prevent executing shell scripts as pre-launch tasks, for workarounds refer to [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task).
43-
44-
### Subsequently
45-
46-
1. If you update to the latest source code and there are new dependencies you will need to run `algokit bootstrap all` again
47-
2. Follow step 3 above
14+
### Initial Setup
15+
16+
#### 1. Clone the Repository
17+
Start by cloning this repository to your local machine.
18+
19+
#### 2. Install Pre-requisites
20+
Ensure the following pre-requisites are installed and properly configured:
21+
22+
- **Docker**: Required for running a local Algorand network. [Install Docker](https://www.docker.com/).
23+
- **AlgoKit CLI**: Essential for project setup and operations. Install the latest version from [AlgoKit CLI Installation Guide](https://github.com/algorandfoundation/algokit-cli#install). Verify installation with `algokit --version`, expecting `2.0.0` or later.
24+
25+
#### 3. Bootstrap Your Local Environment
26+
Run the following commands within the project folder:
27+
28+
- **Install Poetry**: Required for Python dependency management. [Installation Guide](https://python-poetry.org/docs/#installation). Verify with `poetry -V` to see version `1.2`+.
29+
- **Setup Project**: Execute `algokit project bootstrap all` to:
30+
- Install dependencies and setup a Python virtual environment in `.venv`.
31+
- Copy `.env.template` to `.env`.
32+
- **Start LocalNet**: Use `algokit localnet start` to initiate a local Algorand network.
33+
34+
### Development Workflow
35+
36+
#### Terminal
37+
Directly manage and interact with your project using AlgoKit commands:
38+
39+
1. **Build Contracts**: `algokit project run build` compiles all smart contracts.
40+
2. **Deploy**: Use `algokit project deploy localnet` to deploy contracts to the local network.
41+
42+
#### VS Code
43+
For a seamless experience with breakpoint debugging and other features:
44+
45+
1. **Open Project**: In VS Code, open the repository root.
46+
2. **Install Extensions**: Follow prompts to install recommended extensions.
47+
3. **Debugging**:
48+
- Use `F5` to start debugging.
49+
- **Windows Users**: Select the Python interpreter at `./.venv/Scripts/python.exe` via `Ctrl/Cmd + Shift + P` > `Python: Select Interpreter` before the first run.
50+
51+
#### JetBrains IDEs
52+
While primarily optimized for VS Code, JetBrains IDEs are supported:
53+
54+
1. **Open Project**: In your JetBrains IDE, open the repository root.
55+
2. **Automatic Setup**: The IDE should configure the Python interpreter and virtual environment.
56+
3. **Debugging**: Use `Shift+F10` or `Ctrl+R` to start debugging. Note: Windows users may encounter issues with pre-launch tasks due to a known bug. See [JetBrains forums](https://youtrack.jetbrains.com/issue/IDEA-277486/Shell-script-configuration-cannot-run-as-before-launch-task) for workarounds.
57+
58+
## AlgoKit Workspaces and Project Management
59+
This project supports both standalone and monorepo setups through AlgoKit workspaces. Leverage [`algokit project run`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/run.md) commands for efficient monorepo project orchestration and management across multiple projects within a workspace.
4860

4961
> For guidance on `smart_contracts` folder and adding new contracts to the project please see [README](smart_contracts/README.md) on the respective folder.
5062

0 commit comments

Comments
 (0)