To get started, fork the following project.
git clone [email protected]:swaminator/monorepo-amplify.git
This project contains the frontend code for an angular and react Todo app. The repository has the following structure:
> monorepo-amplify
| let pancakeSwapAbi = [ | |
| {"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"}, | |
| ]; | |
| let tokenAbi = [ | |
| {"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}, | |
| ]; | |
| const Web3 = require('web3'); | |
| /* | |
| Required Node.js |
To get started, fork the following project.
git clone [email protected]:swaminator/monorepo-amplify.git
This project contains the frontend code for an angular and react Todo app. The repository has the following structure:
> monorepo-amplify
| import { useTracker } from 'meteor/react-meteor-data' | |
| // Create a reusable subscribe hook | |
| const usePageSubscription = (pageId) => useTracker(() => { | |
| const subscription = Meteor.subscribe('page', pageId) | |
| return !subscription.ready() | |
| }, [pageId]) | |
| // Separate page hook | |
| const usePage = (pageId) => useTracker(() => { |
| # Kill rails server and guard | |
| bin/spring stop | |
| brew services stop mysql | |
| brew uninstall mysql | |
| brew install [email protected] | |
| brew link [email protected] --force | |
| brew services start [email protected] | |
| rbenv uninstall 2.3.3 | |
| rbenv install 2.3.3 | |
| gem install bundle |
| Add the `replication` section to the mongod.conf file: | |
| ``` | |
| $cat /usr/local/etc/mongod.conf | |
| systemLog: | |
| destination: file | |
| path: /usr/local/var/log/mongodb/mongo.log | |
| logAppend: true | |
| storage: | |
| engine: mmapv1 |