Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rymnc/tdd-truffle
Test Driven Development for Smart Contracts
https://github.com/rymnc/tdd-truffle
Last synced: 23 days ago
JSON representation
Test Driven Development for Smart Contracts
- Host: GitHub
- URL: https://github.com/rymnc/tdd-truffle
- Owner: rymnc
- License: mit
- Created: 2020-06-25T15:21:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T03:14:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T21:51:37.525Z (about 1 month ago)
- Language: JavaScript
- Size: 2.12 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Node.js CI](https://github.com/aaryamannchallani/tdd-truffle/workflows/Node.js%20CI/badge.svg?branch=master)
![License](https://img.shields.io/github/license/aaryamannchallani/tdd-truffle)# tdd-truffle
### This Boilerplate code that I have made can be used by anyone looking to make quick dev iterations with frontend and backend(using Ethereum)
## Requirements:
- node.js (10+)
- truffle
- yarn
## First install the dependencies by
`yarn get-dep`, then proceed as needed
## Total Setup:
1. `yarn total-setup` (Spins up the ganache instance, as well as serves the react-app on localhost:3000)
## Backend Setup:
1. `yarn setup` (Spins up the local ganache instance, port:9545, chainId:1337)
2. `yarn test-all` (runs all tests, run in different terminal)
3. `yarn test-deploy` (checks if contract can be deployed, run in different terminal)
4. `yarn test-cov` (Runs Coverage tests)
Note that the contract name is newcon, and if additional contracts are to be deployed, include it in the 2_deploy_contracts.js file
## Frontend Setup:
1. `cd app/`
2. `yarn start`