https://github.com/devaman/treacto
Treacto - A truffle box
https://github.com/devaman/treacto
hacktoberfest truffle truffle-box
Last synced: 8 months ago
JSON representation
Treacto - A truffle box
- Host: GitHub
- URL: https://github.com/devaman/treacto
- Owner: devaman
- License: mit
- Created: 2018-09-24T18:51:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T04:21:00.000Z (about 7 years ago)
- Last Synced: 2025-04-01T13:37:09.136Z (9 months ago)
- Topics: hacktoberfest, truffle, truffle-box
- Language: JavaScript
- Homepage:
- Size: 387 KB
- Stars: 4
- Watchers: 0
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Treacto
[](https://github.com/devaman/treacto/issues)
[](https://github.com/devaman/treacto/network)
[](https://github.com/devaman/treacto/stargazers)
[](https://github.com/devaman/treacto/blob/master/LICENSE)
[](http://hits.dwyl.io/devaman/treacto)
[](https://gitter.im/treacto/Lobby)
# Introduction
Treacto is a truffle box which can be used to create dapps.
Treacto uses ethereum to store the important piece of information on it. The other information that are not important to us can be stored in mongodb database.Its like offchain data-storage house as we have to pay more gas price to store large piece of information on ethereum chain.
> Technology used: Truffle, Reactjs, Redux, Nodejs, Passportjs(token based auth), mongodb, expressjs, ganache.
# Installation
1. Install Truffle and Ganache CLI globally. If you prefer, the graphical version of Ganache works as well!
```
npm install -g truffle
npm install -g ganache-cli
```
2. You can use the command truffle unbox devaman/treacto to create dapp.
3. Run ganache on localhost:8545 (Default)
```
ganache-cli
```
4. Install all the node modules required by running:
- in client folder
```
npm install
```
- in server folder
```
npm install
```
- in root folder
```
npm install
```
5. Create a database.js file in server/config/database.js having following content.
```
module.exports={
'secret':'mysecret',
'database':'mongodb://linktomongodb'
};
```
6. Compile and migrate the smart contracts.
```
truffle compile
truffle migrate --network ganache
```
6.Start the dapp.
```
npm start
```
It will start both client and server.
# Contributor
- [Amit Chambial](https://github.com/devaman/)