Code Monkey home page Code Monkey logo

ethlance's Introduction

ethlance

Repository for ethlance.com

Ethlance is the first job market platform written in ClojureScript and Solidity working completely on the Ethereum blockchain with 0% service fees.

Ethereum Smart Contracts are at /resources/public/contracts/src.

Using Ethlance

MetaMask

  1. Download the MetaMask Chrome extension
  2. Create a wallet and fund it with some Ether
  3. Go on Ethlance

Mist Browser

  1. Download the Mist Browser
  2. Wait for blockchain to download
  3. Fund with Ether
  4. Go on Ethlance

Running on localhost

Following instructions assume you're familiar with the Clojure programming language and have lein installed on your machine.

To start autocompiling smart contracts (requires solc installed):

lein auto compile-solidity

Start testrpc

testrpc --port 8549

Start Clojurescript browser REPL

lein repl
(require 'figwheel-sidecar.repl-api)
(figwheel-sidecar.repl-api/start-figwheel! (figwheel-sidecar.config/fetch-config))
(figwheel-sidecar.repl-api/cljs-repl)

See ethlance.el on how to run the above commands in Emacs via ethlance-jack-in and ethlance-start.

Make sure in ethlance.db/default-db you have the following configuration:

:load-node-addresses? true
:node-url "http://localhost:8549"

Visit localhost:6229 in your browser without MetaMask. I use the Chrome Incognito window.

To redeploy all smart contracts, run the following in REPL.

(in-ns 'ethlance.events)
(dispatch [:reinitialize])

After you see in browser console all contracts have been deployed, refresh the page.

To redeploy only single or few specific smart contracts run:

;; Redeploys and hot swaps EthlanceUser smart contract. No need to refresh page.
(dispatch [:reinitialize [:ethlance-user]])

To build advanced compilation run:

lein clean && lein cljsbuild once min

Contributing

Anyone is welcome to contribute to the ethlance project, here are some brief guidelines:

  • Squash commits
  • Reference issue numbers in your pull request
  • Rebase your changes on upstream (git remote add upstream https://github.com/madvas/ethlance.git) master before pushing (git pull --rebase upstream master)
  • Make changes in a separate well-named branch in your forked repo like improve-readme

ethlance's People

Contributors

madvas avatar

Watchers

 avatar  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.