Giter Site home page Giter Site logo

blarity's Introduction

Blarity MVP

This is simple mvp version for 'state of chain' hackathon Ho Chi Minh city, 02/11/2018

What were using

  • React 16
  • Webpack 3
  • React Router 4
  • SASS
  • Babel Cli
  • Hot Module Reloading
  • Jest 21
  • Enzyme 3 for testing

Features

  • 4 user roles: Creator, Deligator, Normal User, Supplier
  • Normal user can donate for project with any tokens, any where, convert to stable token. We are using Kyber.Network protocol, wrapped in our contract.
  • Creator can make request fund to smart contract
  • Deligator can vote to release fund to supplier
  • Creator can claim fund to supplier

To run

  • You'll need to have git and node installed in your system.
  • Fork and clone the project:
git clone [email protected]:edwardEvans094/blarity.git
  • Then install the dependencies:
npm install
  • Run development server:
npm start
npm run dev

Open the web browser to http://localhost:8888/

To test

To run unit tests:

npm test

Tests come bundled with:

  • Jest
  • Enzyme
  • React Test Utils
  • React Test Renderer

To build the production package

npm run build

Nginx Config

Here is an example Nginx config:

server {
	# ... root and other options

	gzip on;
	gzip_http_version 1.1;
	gzip_types text/plain text/css text/xml application/javascript image/svg+xml;

	location / {
		try_files $uri $uri/ /index.html;
	}

	location ~ \.html?$ {
		expires 1d;
	}

	location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {
		access_log off;
		log_not_found off;
		expires max;
	}
}

Eslint

There is a .eslint.yaml config for eslint ready with React plugin.

To run linting, run:

npm run lint

Notes on importing css styles

  • styles having /src/ in their absolute path considered part of the application and exported as local css modules.
  • other styles considered global styles used by components and included in the css bundle directly.

Contribute

Please contribute to the project if you know how to make it better, including this README :)

blarity's People

Contributors

alicoding avatar greenkeeperio-bot avatar toniqhz avatar pgerochi avatar vydimitrov avatar huy23121994 avatar k3a avatar michaelknoch avatar signalwerk avatar pavds avatar jikkujose avatar connor11528 avatar hasangilak avatar jontonsoup4 avatar xkxd avatar leoromanovsky avatar mrienstra avatar turnerniles avatar zeachco avatar patricklinpl avatar radek-novak avatar duncanchen avatar holmesal avatar armanddu avatar craigtut avatar dhtlee avatar daannijkamp avatar emaraschio avatar hassan-a avatar hugodias avatar

Watchers

 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.