Skip to content

Scaffold-Stark/create-stark

 
 

Repository files navigation

⚠️ 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:

Quickstart

To get started with Scaffold-Stark 2, follow the steps below:

  1. Install from NPM Registry and follow the CLI instructions.
npx create-stark@latest
  1. 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.

  1. 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

  1. 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 in packages/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:

About

Boilerplate to test and develop apps on starknet.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.4%
  • Cairo 1.6%
  • JavaScript 1.2%
  • Other 0.8%