To get this project up running locally, follow these simple example steps.
You will need node and yarn installed.
Step-by-step guide to running this Celo React boilerplate locally;
- Clone the repo
2. Install NPM packages
yarn install
or
npm install
-
Run your application
yarn start
or
npm run start
Step-by-step guide to redeploying smart contract using your address to enable you interact with it.
-
Update the contracts/MyContract.sol file with your smart contract
-
Compile the smart contract
npm run compile
-
Run tests on smart contract
npm run test-contract
-
Update env file
- Create a file in the root directory called ".env"
- Create a key called MNEMONIC and paste in your mnemonic key. e.g
MNEMONIC=asdasd adeew grege egegs nbrebe fwf vwefwf wvwvwv wevw vbtbtr wcvd
-
Deploy the smart contract
npm run deploy
This command will update the src/contract files with the deployed smart contract ABI and contract address
-
Run the project
npm run start
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Visit us at - Dacade