sila-scaffold-rootstock v1.0.0
RootStock Scaffold CLI Tool
A powerful CLI tool to scaffold Rootstock dApps with ease. Quickly set up a full-stack dApp with a customizable stack, including smart contracts, frontend frameworks, and blockchain interaction tools.
š Table of Contents
⨠Features
- Scaffold a Full-Stack dApp: Quickly generate a dApp project with a customizable stack
- Frontend Frameworks: Choose between Next.js or React.js for your frontend
- Programming Languages: Use TypeScript or JavaScript for your project
- Smart Contracts: Automatically generate and deploy an ERC-20 token contract on Rootstock
- Blockchain Interaction: Integrated with Wagmi and RainbowKit for seamless wallet connection
- Tailwind CSS: Pre-configured with Tailwind CSS for rapid UI development
- Hardhat Integration: Built-in Hardhat configuration for smart contract development and testing
š Installation
To use the RootStock Scaffold CLI tool, you need to have Node.js (>= 14.x) and npm (>= 6.x) installed on your machine.
Install Globally via npm
npm install -g sila-scaffold-rootstock
Install Locally
Clone the repository:
git clone https://github.com/web3normad/RootStock-Scaffold.git cd RootStock-Scaffold
Install dependencies:
npm install
Link the package globally (for local development):
npm link
š ļø Usage
Once installed, you can use the CLI tool to scaffold a new Rootstock dApp project.
Scaffold a New Project
Run the following command and follow the prompts:
create-rootstock-dapp
CLI Prompts
- Project Name: Enter the name of your project
- Frontend Framework: Choose between Next.js or React.js
- Programming Language: Choose between TypeScript or JavaScript
- Install Dependencies: Choose whether to install dependencies automatically
Running the Project
After scaffolding, navigate to your project directory and follow these steps:
Start the local blockchain:
npm run blockchain
Deploy your smart contracts:
npm run deploy
Start the frontend:
npm run frontend
š Project Structure
The scaffolded project will have the following structure:
my-rootstock-dapp/
āāā blockchain/ # Smart contract development
ā āāā contracts/ # Solidity contracts
ā āāā scripts/ # Deployment scripts
ā āāā test/ # Smart contract tests
ā āāā hardhat.config.js # Hardhat configuration
āāā frontend/ # Frontend application
ā āāā public/ # Static assets
ā āāā src/ # Application source code
ā āāā tailwind.config.js # Tailwind CSS configuration
āāā package.json # Project dependencies and scripts
āāā README.md # Project documentation
š§ Technologies Used
- Frontend: Next.js, React.js, Tailwind CSS
- Blockchain: Rootstock, Hardhat, Solidity
- Wallet Integration: Wagmi, RainbowKit
- CLI Tools: Commander, Inquirer, Chalk, ShellJS
š„ Contributing
We welcome contributions! If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your feature"
- Push to the branch:
git push origin feature/your-feature-name
- Open a pull request
Please ensure your code follows the project's coding standards and includes appropriate tests.
š License
This project is licensed under the ISC License. See the LICENSE file for details.
š¤ Support
If you encounter any issues or have questions, feel free to:
- Open an issue on GitHub
- Reach out to the maintainer at dojiemma@gmail.com
š Acknowledgments
- Inspired by Scaffold-ETH
- Built with ā¤ļø by Emmanuel Doji
4 months ago