Skip to content
/ mbbc Public

Microblogging Application based on Blockchain

Notifications You must be signed in to change notification settings

haidedang/mbbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlockChat

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.

Getting Started

Prerequisites

  1. MongoDB
  2. NodeJS + NPM [node Version: 8.9.1]
  3. Truffle
  4. Ganache-cli
npm install -g truffle@4.1.11
npm install -g ganache-cli
  1. MetaMask

Installation

Terminal 1 - Start first Server

Navigate to server folder

cd server

Install dependencies

npm install

Run development build

npm run dev-server1

Terminal 2 - Start Second Server

Navigate to server folder

cd server

Run development build

npm run dev-server2

Terminal 3 - Blockchain

Navigate to client folder

cd client 

Install dependencies

npm install 

Run local blockchain at specified Port

ganache-cli -p 9545

Terminal 4 - Client

Open new terminal window to deploy smart contracts on local blockchain

cd client
truffle migrate

Run application in browser

npm run dev

Built With

Project Structure (Abstract)

├── 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

Troubleshooting

No changes after migration

  • truffle migrate --reset to run all migrations from beginning

Contract migration failed

  • remove /build folder and perform migration again

Authors

  • Hai Dang
  • Charul
  • Antal
  • Ferhat

About

Microblogging Application based on Blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages