Building Backend for dApp with Truffle, Node.js and Webpack
Install the node.js
and truffle
globally.
-
Install the code on your local system
- Fork this repository (click 'Fork' button in top right corner)
- Clone the forked repository on your local file system
$ cd /path/to/install/location $ git clone https://github.com/olisystems/dApp-nodeJS-webpack.git
-
Change directory into the local clone of the repository
$ cd dApp-nodeJS-webpack
-
Install dependencies
$ npm install
```
$ cd app && npm i
$ npm run ganache
$ npm run migrate
```
Chnage project directory to the root of the project:
```
$ cd dApp-nodeJS-webpack
$ npm run dev // create devlopment build
$ npm run build // create production build
```
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository.
- Create your new feature branch:
git checkout -b new-feature-branch
- Stage your changes:
git add .
- Commit the changes:
git commit -m "add commit message"
push
to the branch:git push origin new-feature-branch
- Submit a
pull request
.
This project is licensed under the MIT License.