create-stark
v0.3.12
Published
> ⚠️ Under active development. >
Downloads
493
Readme
⚠️ Under active development.
🏗 create-stark
CLI to create decentralized applications (dapps) using Scaffold-Stark.
This is an alternative method of installing Scaffold-Stark. Instead of directly cloning SS-2, you can use create-stark to create your own custom instance, where you can choose among several configurations and extensions.
Requirements
Before you begin, you need to install the following tools:
- Node (>= v18.17)
- Yarn (v1 or v2+)
- Git
Quickstart
To get started with Scaffold-Stark 2, follow the steps below:
- Install from NPM Registry and follow the CLI instructions.
npx create-stark@latest
- Run a local network in the first terminal:
yarn chain
This command starts a local Starknet network. The network runs on your local machine and can be used for testing and development.
- On a second terminal, deploy the test contract:
yarn deploy
This command deploys a test smart contract to the local network. The contract can be modified to suit your needs. Is located in: packages/snfoundry/contracts/src
The yarn deploy
command uses a deploy script to deploy the contract to the network. You can customize it. Is located in: packages/snfoundry/scripts-ts
- On a third terminal, start your NextJS app:
yarn start
Visit your app on: http://localhost:3000
. You can interact with your smart contract using the Debug Contracts
page. You can tweak the app config in packages/nextjs/scaffold.config.ts
.
What's next:
- Edit your smart contract
YourContract.cairo
inpackages/snfoundry/contracts/src
- Edit your frontend homepage at
packages/nextjs/app/page.tsx
. For guidance on routing and configuring pages/layouts checkout the Next.js documentation. - Edit your deployment scripts in
packages/snfoundry/scripts-ts
Documentation
Visit our docs to learn how to start building with Scaffold-Stark 2.
To know more about its features, check out our website.
Contributing to create-stark
We welcome contributions to create-stark and Scaffold-Stark 2!
For more information and guidelines for contributing, please see:
- create-stark CONTRIBUTING.MD if you want to contribute to the CLI.
- Scaffold-Stark 2 CONTRIBUTING.MD if you want to contribute to SS-2 base code.