Coder Social home page Coder Social logo

thebeast0407 / bigchaindb-react-webpack-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bigchaindb/bigchaindb-react-webpack-boilerplate

0.0 2.0 0.0 27 KB

Boilerplate for BigchainDB + React + Webpack (hot reload)

Makefile 0.71% HTML 0.35% CSS 48.70% JavaScript 50.24%

bigchaindb-react-webpack-boilerplate's Introduction

BigchainDB + React + Webpack boilerplate

Clone

Clone or fork this repo (using submodules)

git clone [email protected]:bigchaindb/bigchaindb-react-webpack-boilerplate.git my-bigchaindb-project --recursive 

and

cd my-bigchaindb-project

Now you can set your remotes to your local app and so forth

Server-side setup

Supports BigchainDB Server v0.10 (Warning: use CORS enabled branch untill PR #1311 is resolved )

First things first. You'll need a (local) BigchainDB server to get going with the API.

If you want run the server locally follow these steps:

Quickstart with Docker (Windows, OSX, lazy Linux)

Prequisites

You must have docker, docker-compose (and make) installed. These versions or higher should work:

  • docker: v1.13.0
  • docker-compose: v1.7.1

Locally launch BigchainDB server

To spin up the services, simple run the make command, which will orchestrate docker-compose

make

This might take a few minutes, perfect moment for a โ˜•!

Once docker-compose has built and launched all services, have a look:

docker-compose ps
           Name                         Command               State            Ports
----------------------------------------------------------------------------------------------
mybigchaindbproject_bdb-server_1   bigchaindb start                 Up      0.0.0.0:49984->9984/tcp
mybigchaindbproject_mdb_1          docker-entrypoint.sh mongo ...   Up      0.0.0.0:32773->27017/tcp

Which means that the internal docker port for the API is 9984 and the external one is 49984.

The external ports might change, so for the following use the ports as indicated by docker-compose ps.

You can simply check if it's running by going to http://localhost:<external-docker-port-bdb-server>.

If you already built the images and want to restart:

make restart

Stop (and remove) the containers with

make stop

Launch docker-compose services manually

No make? Launch the services manually:

Launch MongoDB:

docker-compose up -d mdb

Wait about 10 seconds and then launch the server:

docker-compose up -d bdb-server

Client-side Setup

Prequisites

For the client you'll need node and npm: These versions or higher should work:

  • node: v6.2.2
  • npm: v3.9.5

Install

cd client
npm install

Launch

npm start

Note that hot reloading is enabled and should pick up all the changes in the js and scss source.

BigchainDB JavaScript Driver

see the js-bigchaindb-driver for more details

bigchaindb-react-webpack-boilerplate's People

Contributors

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