The goal of this project is to create a decentralized microblogging and messaging service, where each user can chat with each other and follow their tweets.
- MongoDB
- NodeJS + NPM [node Version: 8.9.1]
- Truffle
- Ganache-cli
npm install -g truffle@4.1.11
npm install -g ganache-cli
Navigate to server folder
cd server
Install dependencies
npm install
Run development build
npm run dev-server1
Navigate to server folder
cd server
Run development build
npm run dev-server2
Navigate to client folder
cd client
Install dependencies
npm install
Run local blockchain at specified Port
ganache-cli -p 9545
Open new terminal window to deploy smart contracts on local blockchain
cd client
truffle migrate
Run application in browser
npm run dev
├── client
│ ├── src
│ │ ├── components (UI components)
│ │ ├── App.vue (root component)
│ │ ├── main.js (injects root component into page)
│ │ ├── router
│ │ └── store (state of app)
│ └── contracts (smart contracts)
│
|
├── dist (producton build for deployment)
|
├── Intl (text for client)
|
├── server
│ ├── controllers (communication with backend)
│ ├── models
│ ├── routes
│ ├── config
│ └── server.js (setup, db connection, startup, ...)
|
├── node_modules
├── README.md
├── package.json
└── .gitignore
No changes after migration
truffle migrate --reset
to run all migrations from beginning
Contract migration failed
- remove
/build
folder and perform migration again
- Hai Dang
- Charul
- Antal
- Ferhat