Code Monkey home page Code Monkey logo

firebase-contract's Introduction

!!! README.md created by KudohAtsuo https://github.com/KudohAtsuo/kickstart !!!

kickstart project ==NEXT react dApp==

This app is a basic crowd-funding dApp using Ethereum. Same as crowd funding in the real world, you can create campaigns requiring minimum contribution. The creator can propose how to use money and how much money is needed as a 'Request'. He cannot use money without more than 50% approvers in voting.

How to start

npm install to install dependency modules.

npm run devto start on localhost:3000

You need some fake ETH on Rinkeby. Please get MetaMask!

on public server: https://crowdcoin10.herokuapp.com/

=====Heroku deployment steps=======

I used via Github deployment method to deploy. Below is my steps on heroku:

  1. Creating .gitignore
node_modules/
.next/
*.log
ethereum/compile.js
ethereum/deploy.js
/test
ADDRESS
  1. Configuration on package.json
    "scripts": {
      "dev": "node server.js",
      "build": "next build",
      "start": "NODE_ENV=production node server.js",
      "heroku-postbuild": "next build"
    },
  1. Creating Procfile

web: npm start --port $PORT

  1. Making github repo & push

add ., commit, remote add, push

  1. From my terminal

heroku create <my-app-name>

  1. From my terminal

heroku config:set NPM_CONFIG_PRODUCTION=false

  1. Deploying to heroku...

I. Open your browser and sign into Heroku
II. Navigate to the “Dashboard”
III. Select your newly created app
IV. Click “Deploy”
V. Under “Deployment Method” select “Github”
VI. Add repository name ({username}/{repositoryname})
VII. Click “Search”
VIII. Click “Connect”
IX. Select Branch
X. Click “Deploy Branch”
XI. Click “View”

It works on heroku server now :P

firebase-contract's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.