Welcome to Stakcast! This guide will walk you through setting up the project on your local machine.
Ensure you have the following installed:
-
Fork the Repository
Click the "Fork" button at the top right of the repository page. -
Clone Your Fork
git clone https://github.com/gear5labs/StakCast.git cd stakcast
Run the following command to install all required dependencies:
pnpm installCreate a .env file in the root directory and add the necessary environment variables if env.example exists.
Refer to .env.example for guidance if exists.
Example:
NEXT_PUBLIC_API_URL=http://localhost:3000/apiRun the following command:
pnpm dev:landing #for landing page
pnpm dev:client #for client applicationThen, open http://localhost:3000 in your browser.
-
Install Scarb
curl -L https://raw.githubusercontent.com/software-mansion/scarb/master/install.sh | bashVerify installation:
scarb --version
-
Navigate to the Contracts Directory
cd contracts -
Build the Contracts
scarb build
-
Run Tests Using snforge
snforge test
To ensure your setup is working correctly, run:
pnpm testTo test smart contracts, use:
snforge test-
Create a New Branch
git checkout -b feature-branch-name
-
Make Your Changes
Write your code, add tests if necessary, and update documentation. -
Commit Your Changes
git add . git commit -m "Describe your changes"
-
Push Your Changes
git push origin feature-branch-name
-
Create a Pull Request
- Go to Pull Requests.
- Click "New Pull Request."
- Provide a clear title and description.
If you have any issues, feel free to reach out to the maintainers.
Happy coding! 🚀✨