Skip to content

Krulknul/try-scrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

try-scrypto

This repository provides a VS Code dev containers configuration with a complimentary Docker image that allows you to quickly try out Scrypto on your machine, without going through all its installation steps.

For an introduction about working inside of dev containers in VS Code, see the documentation.

This repository includes the basic "hello" example that is generated when a new package is created with scrypto new-package. Once you open the project inside the container, you will have the entire Scrypto toolchain available in that isolated environment.

How to use

You will need to have Docker installed, in addition to the Dev containers extension in VS Code. For instructions on their installation, find their respective documentation pages.

  1. Clone this repository:
git clone git@github.com:Krulknul/try-scrypto.git
  1. Open the directory with VS Code:
code try-scrypto
  1. VS Code might suggest you to open the repository in a dev container, because of the existing .devcontainer config. If it does, click "Reopen in container". Else, open the command palette and type "Reopen in container". Docker might pull the image if it's not yet present and then start the container.

  2. Wait for rust-analyzer to finish checking and indexing. It might take a bit of time before IntelliSense comes alive.

  3. Try out Scrypto!

Use scrypto build to build the project, or try out scrypto --help for more subcommands. Additional CLI tools are also present inside the container, like resim, the Radix Engine simulator, or rtmc and rtmd, the Radix transaction manifest compiler and decompiler respectively.

Exiting the container

To get out of the container, open the command palette again and type "Reopen Folder Locally", to find the command for that. The code is mounted inside the container, so any changes will be persistent.

Customizing the image

The dev container is set up to use a Dockerfile, so it is possible to add more development tools to the environment as you wish.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published