A Blockchain based crowdfunding application using solidity, truffle and nodejs.
BlockFund web application uses node.js along with the express.js framework to develop the server and mongoDB as database and mongoose as object data modeling library. For the frontend aspect we have used React. For the blockchain aspect, we have used the ethereum blockchain to deploy the smart contracts and web3.js library to interact with the ethereum node and the frontend. We have used Ganache and Truffle for creating a remote Blockchain environment.
The following dependencies need to be installed.
- node.js
- npm
- mongodb / mongodb atlas
- web3.js
- Ganache
- Truffle
Retrieve the project (clone the repository using the command)
git clone https://github.com/Anish-U/BlockFund.git
After cloning the repository, navigate into the directories (server) and run the following command to install all the dependencies
npm install
Setup the environment variables by creating .env file in server directory
SERVER_PORT="5000"
MONGO_USERNAME="mongo_username"
MONGO_PASSWORD="mongo_password"
In new terminal, run the command (to run development server)
npm run devServer