e0b94d06e1
* Initial work on create flow. * Redux and validation initial work. * Fix typescript issues * Review page * Misc fixes * Example fill in, and initial state setting. * Milestone timeline in review * Initial markdown state * Draft saving, loading, resetting. Using local storage for now. * Fix initial milestone state. Make steps clickable. * Preview functionality. * Create governance step that handles all contract data. * Proposals can now be created with new flow. Team has been dismantled. * Replace old create with new flow. Adjust url casing. * Convert styles to less * Fix form reset * Remove team step * tsc * Show errors. * Prevent publish if there are any errors. * Remove comments, variablize time. * Reset crowd fund deploy state when form is mounted to prevent getting error / success message from previous deploy. |
||
---|---|---|
.. | ||
bin | ||
client | ||
config | ||
logs | ||
server | ||
.envexample | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
.nvmrc | ||
.prettierrc | ||
README.md | ||
now.json | ||
package.json | ||
truffle.js | ||
tsconfig.json | ||
tslint.json | ||
yarn.lock |
README.md
Grant.io Front-End
This is the front-end component of Grant.io.
Development
-
Install local project dependencies, and also install Truffle & Ganache globally:
# Local dependencies yarn # Global dependencies yarn global add truffle ganache-cli
-
(In a separate terminal) Run the ganache development blockchain:
yarn run ganache
-
Ensure you have grant-contract cloned locally and setup.
-
(In a separate terminal) Initialize truffle, open up the repl (Changes to smart contracts will require you to re-run this):
yarn run truffle
-
Run the next.js server / webpack build for the front-end:
yarn run dev
-
Go to the dapp on localhost:3000. You'll need to setup metamask to connect to the ganache network. You'll want to add a custom "RPC" network, and point it towards localhost:8545.
Testing
Application
TBD
Smart Contract
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
# If inside the truffle console
test
# If outside the truffle console
truffle test