Skip to content

Commit

Permalink
chore: regen artifacts (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev authored Jul 9, 2024
1 parent 063e1bb commit ec1417b
Show file tree
Hide file tree
Showing 31 changed files with 133 additions and 86 deletions.
5 changes: 3 additions & 2 deletions examples/production_beaker_react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ This starter full stack project has been generated using AlgoKit. See below for
1. Clone this repository to your local machine.
2. Ensure [Docker](https://www.docker.com/) is installed and operational. Then, install `AlgoKit` following this [guide](https://github.com/algorandfoundation/algokit-cli#install).
3. Run `algokit project bootstrap all` in the project directory. This command sets up your environment by installing necessary dependencies, setting up a Python virtual environment, and preparing your `.env` file.
4. To build your project, execute `algokit project run build`. This compiles your project and prepares it for running.
5. For project-specific instructions, refer to the READMEs of the child projects:
4. In the case of a smart contract project, execute `algokit generate env-file -a target_network localnet` from the `production_beaker_react-contracts` directory to create a `.env.localnet` file with default configuration for `localnet`.
5. To build your project, execute `algokit project run build`. This compiles your project and prepares it for running.
6. For project-specific instructions, refer to the READMEs of the child projects:
- Smart Contracts: [production_beaker_react-contracts](projects/production_beaker_react-contracts/README.md)
- Frontend Application: [production_beaker_react-frontend](projects/production_beaker_react-frontend/README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 2.1.1
_commit: 2.1.2
_src_path: gh:algorandfoundation/algokit-beaker-default-template
author_email: None
author_name: None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
_tasks:
- "echo '==== Successfully generated new .env file 🚀 ===='"

use_generic_env:
type: bool
help: Create generic empty .env file (true) or create a network specific .env.{network_name} file (false).
placeholder: "true"
default: "true"

target_network:
type: str
help: Name of your target network.
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
"module": "smart_contracts",
"cwd": "${workspaceFolder}",
"preLaunchTask": "Start AlgoKit LocalNet",
"envFile": "${workspaceFolder}/.env.localnet"
"env": {
"ALGOD_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ALGOD_SERVER": "http://localhost",
"ALGOD_PORT": "4001",
"INDEXER_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"INDEXER_SERVER": "http://localhost",
"INDEXER_PORT": "8980"
}
},
{
"name": "Deploy contracts",
Expand All @@ -17,7 +24,14 @@
"module": "smart_contracts",
"args": ["deploy"],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/.env.localnet"
"env": {
"ALGOD_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ALGOD_SERVER": "http://localhost",
"ALGOD_PORT": "4001",
"INDEXER_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"INDEXER_SERVER": "http://localhost",
"INDEXER_PORT": "8980"
}
},
{
"name": "Build contracts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ Ensure the following pre-requisites are installed and properly configured:
Run the following commands within the project folder:

- **Install Poetry**: Required for Python dependency management. [Installation Guide](https://python-poetry.org/docs/#installation). Verify with `poetry -V` to see version `1.2`+.
- **Setup Project**: Execute `algokit project bootstrap all` to:
- Install dependencies and setup a Python virtual environment in `.venv`.
- Configure '.env' files if needed (see [AlgoKit Generators](#algokit-generators)).
- **Setup Project**: Execute `algokit project bootstrap all` to install dependencies and setup a Python virtual environment in `.venv`.
- **Configure environment**: Execute `algokit generate env-file -a target_network localnet` to create a `.env.localnet` file with default configuration for `localnet`.
- **Start LocalNet**: Use `algokit localnet start` to initiate a local Algorand network.

### Development Workflow
Expand Down Expand Up @@ -74,7 +73,7 @@ By default the template creates a single `HelloWorld` contract under hello_world
### Generate '.env' files

By default the template instance would not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`.
By default the template instance does not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`.

To generate a new `.env` or `.env.{target_network}` file, run `algokit generate env-file`### Continuous Integration / Continuous Deployment (CI/CD)

Expand Down
5 changes: 3 additions & 2 deletions examples/production_python_react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ This starter full stack project has been generated using AlgoKit. See below for
1. Clone this repository to your local machine.
2. Ensure [Docker](https://www.docker.com/) is installed and operational. Then, install `AlgoKit` following this [guide](https://github.com/algorandfoundation/algokit-cli#install).
3. Run `algokit project bootstrap all` in the project directory. This command sets up your environment by installing necessary dependencies, setting up a Python virtual environment, and preparing your `.env` file.
4. To build your project, execute `algokit project run build`. This compiles your project and prepares it for running.
5. For project-specific instructions, refer to the READMEs of the child projects:
4. In the case of a smart contract project, execute `algokit generate env-file -a target_network localnet` from the `production_python_react-contracts` directory to create a `.env.localnet` file with default configuration for `localnet`.
5. To build your project, execute `algokit project run build`. This compiles your project and prepares it for running.
6. For project-specific instructions, refer to the READMEs of the child projects:
- Smart Contracts: [production_python_react-contracts](projects/production_python_react-contracts/README.md)
- Frontend Application: [production_python_react-frontend](projects/production_python_react-frontend/README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 1.2.1
_commit: 1.2.2
_src_path: gh:algorandfoundation/algokit-python-template
author_email: None
author_name: None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
_tasks:
- "echo '==== Successfully generated new .env file 🚀 ===='"

use_generic_env:
type: bool
help: Create generic empty .env file (true) or create a network specific .env.{network_name} file (false).
placeholder: "true"
default: "true"

target_network:
type: str
help: Name of your target network.
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
"module": "smart_contracts",
"cwd": "${workspaceFolder}",
"preLaunchTask": "Start AlgoKit LocalNet",
"envFile": "${workspaceFolder}/.env.localnet"
"env": {
"ALGOD_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ALGOD_SERVER": "http://localhost",
"ALGOD_PORT": "4001",
"INDEXER_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"INDEXER_SERVER": "http://localhost",
"INDEXER_PORT": "8980"
}
},
{
"name": "Deploy contracts",
Expand All @@ -17,7 +24,14 @@
"module": "smart_contracts",
"args": ["deploy"],
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/.env.localnet"
"env": {
"ALGOD_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ALGOD_SERVER": "http://localhost",
"ALGOD_PORT": "4001",
"INDEXER_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"INDEXER_SERVER": "http://localhost",
"INDEXER_PORT": "8980"
}
},
{
"name": "Build contracts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ Ensure the following pre-requisites are installed and properly configured:
Run the following commands within the project folder:

- **Install Poetry**: Required for Python dependency management. [Installation Guide](https://python-poetry.org/docs/#installation). Verify with `poetry -V` to see version `1.2`+.
- **Setup Project**: Execute `algokit project bootstrap all` to:
- Install dependencies and setup a Python virtual environment in `.venv`.
- Configure '.env' files if needed (see [AlgoKit Generators](#algokit-generators)).
- **Setup Project**: Execute `algokit project bootstrap all` to install dependencies and setup a Python virtual environment in `.venv`.
- **Configure environment**: Execute `algokit generate env-file -a target_network localnet` to create a `.env.localnet` file with default configuration for `localnet`.
- **Start LocalNet**: Use `algokit localnet start` to initiate a local Algorand network.

### Development Workflow
Expand Down Expand Up @@ -74,7 +73,7 @@ By default the template creates a single `HelloWorld` contract under hello_world
### Generate '.env' files

By default the template instance would not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`.
By default the template instance does not contain any env files. Using [`algokit project deploy`](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/project/deploy.md) against `localnet` | `testnet` | `mainnet` will use default values for `algod` and `indexer` unless overwritten via `.env` or `.env.{target_network}`.

To generate a new `.env` or `.env.{target_network}` file, run `algokit generate env-file`### Continuous Integration / Continuous Deployment (CI/CD)

Expand Down
5 changes: 3 additions & 2 deletions examples/production_tealscript_react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ This starter full stack project has been generated using AlgoKit. See below for
1. Clone this repository to your local machine.
2. Ensure [Docker](https://www.docker.com/) is installed and operational. Then, install `AlgoKit` following this [guide](https://github.com/algorandfoundation/algokit-cli#install).
3. Run `algokit project bootstrap all` in the project directory. This command sets up your environment by installing necessary dependencies, setting up a Python virtual environment, and preparing your `.env` file.
4. To build your project, execute `algokit project run build`. This compiles your project and prepares it for running.
5. For project-specific instructions, refer to the READMEs of the child projects:
4. In the case of a smart contract project, execute `algokit generate env-file -a target_network localnet` from the `production_tealscript_react-contracts` directory to create a `.env.localnet` file with default configuration for `localnet`.
5. To build your project, execute `algokit project run build`. This compiles your project and prepares it for running.
6. For project-specific instructions, refer to the READMEs of the child projects:
- Smart Contracts: [production_tealscript_react-contracts](projects/production_tealscript_react-contracts/README.md)
- Frontend Application: [production_tealscript_react-frontend](projects/production_tealscript_react-frontend/README.md)

Expand Down
Loading

0 comments on commit ec1417b

Please sign in to comment.