-
Notifications
You must be signed in to change notification settings - Fork 0
Quickstart Guide
Welcome to the repository-template quickstart guide! This template provides a base structure for creating a project that can interact with the Conflux blockchain. Follow the steps below to get started quickly.
Repository URL: https://github.com/cfxdevkit/repository-template
Before using the template locally, ensure you have the following installed on your system:
- Git: For cloning and managing the repository.
- VS Code: For local development.
- Docker: Required to run the preconfigured development environment locally.
Note: Using the template in Codespace don't require any prerequisites
This repository is a GitHub template, meaning you can easily create a new project based on it. Here's how:
- Navigate to the template repository: https://github.com/cfxdevkit/repository-template.
- Click the green Use this template button in the top-right corner of the page, next to the Watch, Fork, and Star buttons.
When you click Use this template, you'll see two options:
- Select this option to create a new repository in your GitHub account based on this template.
- Provide a name for your new repository and click Create repository from template.
- Once created, you can clone the repository or open it directly in VS Code or Codespaces.
- Select this option to immediately open the repository in GitHub Codespaces.
- A new Codespace will be created in your account with the preconfigured development environment ready to use.
If you prefer to work locally, follow these steps after creating a repository using the template:
-
Clone Your Repository
Open a terminal and run the following command to clone your new repository:git clone https://github.com/your-username/your-repository-name.git
-
Open in VS Code
Navigate to the repository directory:cd your-repository-nameThen, open the repository in VS Code:
code . -
Rebuild the Devcontainer
If you have the Remote - Containers extension installed in VS Code, you can use the included devcontainer configuration:- Click Reopen in Container when prompted.
- Wait for the environment to build and start.
You are now ready to start creating your project!
Visit the Devkit CLI Wiki for the available commands to manage your local Conflux node
Enjoy creating your project with the repository-template!