-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Start from template" step under CLI -> Get Started (#590)
* add "Start from template" step under CLI -> Get Started * update content and wording * editorial fixes, update github code link, add callout backlink to templates
- Loading branch information
Showing
3 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Card, RemoteCodeblock, permalinkFetch } from '@components/index'; | ||
import { Steps } from "nextra/components" | ||
|
||
export async function getStaticProps() { | ||
return await permalinkFetch([ | ||
"https://github.com/aptos-labs/aptos-core/blob/afd3706c17bcccfb39a9d6059aecbfa648ed295d/aptos-move/move-examples/hello_blockchain/sources/hello_blockchain.move#L1-L64" | ||
]) | ||
} | ||
|
||
# Start a Move package from a template | ||
Follow the steps below to quickly get started. | ||
|
||
<Steps> | ||
### Initialize | ||
Run the following to initialize a package using the `hello-blockchain` template: | ||
```bash filename="Terminal" | ||
aptos move init --name hello_blockchain --template hello-blockchain | ||
``` | ||
|
||
### Start building | ||
The template creates a `hello_blockchain.move` file under `sources` to help get you started. | ||
<RemoteCodeblock | ||
permalink="https://github.com/aptos-labs/aptos-core/blob/afd3706c17bcccfb39a9d6059aecbfa648ed295d/aptos-move/move-examples/hello_blockchain/sources/hello_blockchain.move#L1-L64" | ||
/> | ||
|
||
### See all templates | ||
Run the following command to see all templates (and for general help initializing a package): | ||
```bash | ||
aptos move init --help | ||
``` | ||
|
||
### Learn More | ||
<Card href="../smart-contracts"> | ||
<Card.Title>Smart Contracts</Card.Title> | ||
<Card.Description>Learn how to build in Move</Card.Description> | ||
</Card> | ||
<Card href="../smart-contracts/create-package"> | ||
<Card.Title>Create Package</Card.Title> | ||
<Card.Description>Get started by learning how to create a Move package</Card.Description> | ||
</Card> | ||
|
||
</Steps> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters